Linux Setting up your network. Basic Approaches Configure during installation –Disadvantage -> not able to redo easily –Advantage-> holds your hand Configure.

Slides:



Advertisements
Similar presentations
Jump to first page Setup Ethernet & PPP client on Laptop computer Presented by: Xuewu Cai Jianfang Wang.
Advertisements

Static Routing Exercise AFNOG 2003/ Track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
Static Routing Exercise. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration  Static routes.
CIS 193A – Lesson9 Network Infrastructure. CIS 193A – Lesson9 Focus Question What are three high level subnets a corporate intranet will want to support?
Terminology and basic structures for lab 1 ©2012 Prof. José María Foces Morán.
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
Linux network troubleshooting If your network connection is not working..
1 Linux Networking and Security Chapter 2. 2 Configuring Basic Networking Describe how networking devices differ from other Linux devices Configure Linux.
Linux Networking TCP/IP stack kernel controls the TCP/IP protocol Ethernet adapter is hooked to the kernel in with the ipconfig command ifconfig sets the.
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
588 Section 2 Neil Spring April 13, Schedule traceroute (context) Paxson’s Pathologies Dijkstra’s (shortest path) Algorithm Subnetting Homework.
Introduction to Applied Network Security By Prof. Herzberg Man in the Middle lab #1 Aharon Brodie.
Installing and running FreeS/WAN. What is FreeS/WAN An implementation of IpSec for Linux –Can be found at Helps setup encrypted and/or.
Network Management And Debugging
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Linux Setting up your network. Basic Approaches Configure during installation –Disadvantage -> not able to redo easily –Advantage-> holds your hand Configure.
Linux Networking Sirak Kaewjamnong. 2 Configuration NIC IP address  NIC: Network Interface Card  Use “ipconfig” command to determine IP address, interface.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Hardening Linux for Enterprise Applications Peter Knaggs & Xiaoping Li Oracle Corporation Sunil Mahale Network Appliance Session id:
Linux Networking Commands
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
Chapter 12: Configuring Networks The Complete Guide to Linux System Administration.
Interior Gateway Routing Protocol (IGRP) is a distance vector interior routing protocol (IGP) invented by Cisco. It is used by routers to exchange routing.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
TCP/IP Sections: 13.7, 13.8, 13.11, Adding A Machine to a Network 13.8 Distribution-Specific Network Configuration Security Issues
Linux Network Setup.
HALP! Something is in my tubes! Part I by Jason Testart, IST.
Networking ● Networking uses the TCP/IP protocol by default, but Linux can use other protocols to interact with other operating systems: MS Networking.
Cybersecurity Computer Science Innovations, LLC. Fingerprinting So, we have a file at the top level of a Web site. It is called robots.txt It specifies.
Network Troubleshooting
Objectives Define IP Address To be able to assign an IP address with its Subnet Mask and Default Gateway to a PC that operates using Windows 7 or Fedora.
Page 1 COMP210 Network layer. Page 2 The Network Layer  The network layer is responsible for establishing, maintaining and terminating connections 
1 How to Enable IPv6 in Your Subnet Quincy Wu March 10, 2004.
1 IP: putting it all together Part 1 G53ACC Chris Greenhalgh.
Copyright © Lopamudra Roychoudhuri
Links and LANs Link between two computers via cross cable The most simple way to connect two hosts is to link the two hosts with a cross cable.
1 Tutorial 6: Networking Utilities & Firewall. 2 Internet Control Message Protocol (ICMP) designed to compensate for the deficiencies of IP protocol.
Delivery, Forwarding, and Routing of IP Packets
System Troubleshooting TCS Network, System, and Load Monitoring TCS for Developers.
1 Internet Tool Practice 한두균 송정환
Hands On Networking IPv4 Routing Veena S (MCA Dept) Shruti Kadam, MCA Dept Arpita Kulkarni, MCA Dept June 28, 2012.
1 COP 4343 Unix System Administration Unit 11: Networking – basic concepts: IP, TCP, UDP, DHCP – devices: setup, status.
2010 paro, bhutan IP Basics IP/ISP Services Workshop July, 2010 Paro, Bhutan.
IPv6 – The Future Of The Internet Redbrick Networking Conference 26 March 2003 Dave Wilson DW238-RIPE.
Linux Routing. Why use Linux as a router? Its cheap. Linux has low hardware requirements. A properly configured P166 Mhz computer would have no problems.
TCP/IP Networking Objectives –to learn how to integrate a RedHat system onto a TCP/IP network Contents –TCP/IP configuration files –Network configuration.
TCP/IP Network Essentials
Basic Linux Router I Router, a device that... Working on OSI Layer 3 (Network Layer) Connected to more than one networks Finding.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
BNL PDN Enhancements. Perimeter Load Balancers Scaleable Performance Fault Tolerance Server Maintainability User Convenience Perimeter Security.
Linux Operations and Administration Chapter Eight Network Communications.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Linux Operations and Administration
CSN09101 Networked Services Week 5 : Networking
Fall 2011 Nassau Community College ITE153 – Operating Systems 1 Session 9 Networking & Operating Systems (part 2)
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
UDP. User Datagram Protocol (UDP)  Unreliable and unordered datagram service  Adds multiplexing  No flow control  Endpoints identified by ports 
LINUX Network Concepts M.S.Dibay Moghaddam Second Linux Festival Amir Kabir University of Technology Computer & IT Department.
Ifconfig Kevin O'Brien Washtenaw Linux Users Group
Chapter 12: Configuring Networks
Linux network troubleshooting
Network Configuration
LINUX ADMINISTRATION
IPv6 Hands-on pre-GDB IPv6 workshop 7th of June 2016 edoardo
DHCP server & Client Objectives Contents
Chapter 6 – Routing.
Introduction to Networking
IP Network Layer and Ethernet Encapsulation
Delivery, Forwarding, and Routing of IP Packets
Module 12 Network Configuration
Presentation transcript:

Linux Setting up your network

Basic Approaches Configure during installation –Disadvantage -> not able to redo easily –Advantage-> holds your hand Configure after installation –Disadvantage -> collision with other config tools –Advantage-> fairly easy to use (99.5% coverage) Access files directly –Disadvantage -> more details to know –Advantage-> access to everything and a deeper understanding

Access Files Directly Most of the files are in /etc Use installation to recognize NIC cards /etc/sysconfig to specify setup /etc/modules.conf to recognize cards /etc/rc.d/init.d to restart network after configuring Add manual routes to static-routes

/ etc Tons of configuration information Very small amount related to the configuration of the network Focus on /etc/sysconfig first Use the installation process to recognize the NIC cards. Edit sysconfig files afterwards if errors occur.

Recognizing cards Installation is reasonably sophisticated. Most cards will be recognized either with a generic driver or the real one. Use ifconfig to determine if card is recognized. (see next overhead) For older cards use /etc/modules.conf

ifconfig -> eth0 Link encap:Ethernet HWaddr 00:E0:7D:7A:AE:2C inet addr: Bcast: Mask: UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets: errors:0 dropped:0 overruns:0 frame:0 TX packets: errors:0 dropped:0 overruns:0 carrier:0 collisions:6947 txqueuelen:100 RX bytes: (12.3 Mb) TX bytes: (26.3 Mb) Interrupt:5 Base address:0xe000 lo Link encap:Local Loopback inet addr: Mask: UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1269 errors:0 dropped:0 overruns:0 frame:0 TX packets:1269 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes: (109.1 Kb) TX bytes: (109.1 Kb)

Cards Recognized.. Next? Check the configuration of the network Use netstat to check the routing tables Be sure the cards are connected to the right network if multiple cards (router) Use ping to check for connectivity.

netstat -nr -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface U eth U lo UG eth0

Problems? General Networking Examine the network configuration files / etc … sysconfig network [prompt]# cat network NETWORKING=yes FORWARD_IPV4=false HOSTNAME=testserver DOMAINNAME=localdomain GATEWAY= [prompt]#

Red Hat Fedora exception to network file Format is same but… FORWARD_IPV4 flag is overridden by an entry in a kernel configuration file named /etc/sysctl.conf net.ipv4.ip_forward = 1

Each Device / etc … sysconfig network network-scripts ifcfg-eth0 … [prompt]#cat ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static IPADDR= NETMASK= NETWORK= BROADCAST= ONBOOT=yes [prompt]#

Recognizing a NIC /etc/modules.conf alias eth0 ne2k-pci alias eth1 3c5x9 options ne2k-pci irq=5 Forces the boot programs to examine additional “modules” for support in recognizing devices. Modules do other things and generally add functionality to the kernel. Odd format, but says to probe for a device using the ne2000 probe and name it eth0. Lets you control naming and also deal with two cards with identical type (not plug and play) Lets you add other info to help the probe software detect the device (specifying interrupt and i/o settings)

Other issues in recognizing Two cards of the same type are problematic if using older ISA cards –Most plug and play work fine –Is same and older May need to use separate software to set I/O And to set INTERRUPT Then use modules.conf to convey setting to boot. Look online for details for setting modules for specific network card types.

Restarting the network / etc … rc.d init.d network This is a script used during the boot process to start up the network. Don’t change it! Restart the network by 1.cd ing to the /etc/rc.d/init.d directory 2../network restart 3./sbin/service network restart

ping Don’t forget to use ping to test connectivity Use the lights to be sure interfaces are connected Use ifconfig to track the progress of communications through each interface “inch” your way out ( ping ing) if outside connection fails Be sure to configure forwarding on your router in the /etc/sysconfig/network file

static routes Used to add routes not obvious (most) Almost anything other than default gateway file is /etc/sysconfig/static-routes Example configuration line any net netmask gw See /etc/init.d/network script on next page –Shows file being read –Shows how the file adds static routes

/etc/init.d/network snapshot # Add non interface-specific static-routes. if [ -f /etc/sysconfig/static-routes ]; then grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do /sbin/route add -$args done fi First line – names the file being read Second line – shows the file being filtered to look for lines beginning with “any” Third line – shows how to build the line on the file and how it as used with the route command