SlideShare a Scribd company logo
Chapter 18Chapter 18
Network ConfigurationNetwork Configuration
Network Devices in LinuxNetwork Devices in Linux
●
lolo
– Loop back deviceLoop back device
– IP address is 127.0.0.1 permanentlyIP address is 127.0.0.1 permanently
●
ethethNN
– Ethernet interfaceEthernet interface
– Device number starting from 0Device number starting from 0
●
wlanwlanNN
– Wireless interfaceWireless interface
– Device number starting from 0Device number starting from 0
Display Interface ConfigurationDisplay Interface Configuration
●
ifconfigifconfig
eth0 Link encap:Ethernet HWaddr 00:16:d3:32:ea:dceth0 Link encap:Ethernet HWaddr 00:16:d3:32:ea:dc
inet addr:192.168.100.57 Bcast:192.168.100.255 Mask:255.255.255.0inet addr:192.168.100.57 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::216:d3ff:fe32:eadc/64 Scope:Linkinet6 addr: fe80::216:d3ff:fe32:eadc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18973 errors:0 dropped:0 overruns:0 frame:0RX packets:18973 errors:0 dropped:0 overruns:0 frame:0
TX packets:16624 errors:0 dropped:0 overruns:0 carrier:0TX packets:16624 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000collisions:0 txqueuelen:1000
RX bytes:12613255 (12.6 MB) TX bytes:2686873 (2.6 MB)RX bytes:12613255 (12.6 MB) TX bytes:2686873 (2.6 MB)
Interrupt:16 Memory:ee000000-ee020000Interrupt:16 Memory:ee000000-ee020000
lo Link encap:Local Loopbacklo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Hostinet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:523 errors:0 dropped:0 overruns:0 frame:0RX packets:523 errors:0 dropped:0 overruns:0 frame:0
TX packets:523 errors:0 dropped:0 overruns:0 carrier:0TX packets:523 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0collisions:0 txqueuelen:0
RX bytes:38418 (38.4 KB) TX bytes:38418 (38.4 KB)RX bytes:38418 (38.4 KB) TX bytes:38418 (38.4 KB)
Display Address InformationDisplay Address Information
●
ip addr showip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state
UNKNOWNUNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host loinet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forevervalid_lft forever preferred_lft forever
inet6 ::1/128 scope hostinet6 ::1/128 scope host
valid_lft forever preferred_lft forevervalid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000state UP qlen 1000
link/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:fflink/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:ff
inet 192.168.100.57/24 brd 192.168.100.255 scope global eth0inet 192.168.100.57/24 brd 192.168.100.255 scope global eth0
valid_lft forever preferred_lft forevervalid_lft forever preferred_lft forever
inet6 fe80::216:d3ff:fe32:eadc/64 scope linkinet6 fe80::216:d3ff:fe32:eadc/64 scope link
valid_lft forever preferred_lft forevervalid_lft forever preferred_lft forever
Display Link InformationDisplay Link Information
●
ip link showip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state
UNKNOWNUNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000state UP qlen 1000
link/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:fflink/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:ff
Display Link CharacteristicsDisplay Link Characteristics
●
ip ­s link showip ­s link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state
UNKNOWNUNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
RX: bytes packets errors dropped overrun mcastRX: bytes packets errors dropped overrun mcast
38418 523 0 0 0 038418 523 0 0 0 0
TX: bytes packets errors dropped carrier collsnsTX: bytes packets errors dropped carrier collsns
38418 523 0 0 0 038418 523 0 0 0 0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000state UP qlen 1000
link/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:fflink/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcastRX: bytes packets errors dropped overrun mcast
12629558 19078 0 0 0 24512629558 19078 0 0 0 245
TX: bytes packets errors dropped carrier collsnsTX: bytes packets errors dropped carrier collsns
2711702 16782 0 0 0 02711702 16782 0 0 0 0
Display Routing InformationDisplay Routing Information
●
route ­nroute ­n
Kernel IP routing tableKernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use IfaceDestination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.100.11 0.0.0.0 UG 0 0 0 eth00.0.0.0 192.168.100.11 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
Display Routing InformationDisplay Routing Information
●
ip route showip route show
default via 192.168.100.11 dev eth0 proto staticdefault via 192.168.100.11 dev eth0 proto static
169.254.0.0/16 dev eth0 scope link metric 1000169.254.0.0/16 dev eth0 scope link metric 1000
192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.57192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.57
metric 1metric 1
Display DNS SettingsDisplay DNS Settings
●
cat /etc/resolv.confcat /etc/resolv.conf
cat /etc/resolv.confcat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE
OVERWRITTENOVERWRITTEN
nameserver 192.168.100.11nameserver 192.168.100.11
Change IP SettingsChange IP Settings
●
Add IP:Add IP:
– ifconfig eth0:0 IP/MASKifconfig eth0:0 IP/MASK
– ip address add IP/MASK dev eth0ip address add IP/MASK dev eth0
●
Delete IP:Delete IP:
– ifconfig eth0:0 downifconfig eth0:0 down
– ip address del IP/MASK dev eth0ip address del IP/MASK dev eth0
Change Route SettingsChange Route Settings
●
Add route:Add route:
– route add ­net NET/MASK gw GW_IProute add ­net NET/MASK gw GW_IP
– ip route add NET/MASK via GW_IPip route add NET/MASK via GW_IP
●
Delete route:Delete route:
– route del ­net NET/MASK gw GW_IProute del ­net NET/MASK gw GW_IP
– ip route del NET/MASK via GW_IPip route del NET/MASK via GW_IP
Persistent IP SettingsPersistent IP Settings
●
Redhat/CentOS:Redhat/CentOS:
vi /etc/sysconfig/network­scripts/eth0vi /etc/sysconfig/network­scripts/eth0
# Intel Corporation 82545EM Gigabit Ethernet # Intel Corporation 82545EM Gigabit Ethernet 
Controller (Copper)Controller (Copper)
DEVICE=eth0DEVICE=eth0
BOOTPROTO=noneBOOTPROTO=none
HWADDR=00:0c:29:05:e1:d2HWADDR=00:0c:29:05:e1:d2
IPADDR=163.16.5.180IPADDR=163.16.5.180
NETMASK=255.255.255.0NETMASK=255.255.255.0
ONBOOT=yesONBOOT=yes
GATEWAY=163.16.5.254GATEWAY=163.16.5.254
TYPE=EthernetTYPE=Ethernet
USERCTL=noUSERCTL=no
IPV6INIT=noIPV6INIT=no
PEERDNS=noPEERDNS=no
Persistent IP SettingsPersistent IP Settings
●
Ubuntu:Ubuntu:
vi /etc/network/interfacesvi /etc/network/interfaces
auto loauto lo
iface lo inet loopbackiface lo inet loopback
iface eth0 inet staticiface eth0 inet static
address 192.168.0.2address 192.168.0.2
netmask 255.255.255.0netmask 255.255.255.0
DHCP IP SettingsDHCP IP Settings
●
Redhat/CentOS:Redhat/CentOS:
vi /etc/sysconfig/network­scripts/eth0vi /etc/sysconfig/network­scripts/eth0
# Intel Corporation 82545EM Gigabit Ethernet # Intel Corporation 82545EM Gigabit Ethernet 
Controller (Copper)Controller (Copper)
DEVICE=eth0DEVICE=eth0
BOOTPROTO=dhcpBOOTPROTO=dhcp
HWADDR=00:0c:29:05:e1:d2HWADDR=00:0c:29:05:e1:d2
ONBOOT=yesONBOOT=yes
TYPE=EthernetTYPE=Ethernet
USERCTL=yesUSERCTL=yes
IPV6INIT=noIPV6INIT=no
PEERDNS=yesPEERDNS=yes
DHCP IP SettingsDHCP IP Settings
●
Ubuntu:Ubuntu:
vi /etc/network/interfacesvi /etc/network/interfaces
auto loauto lo
iface lo inet loopbackiface lo inet loopback
auto eth0auto eth0
iface eth0 inet dhcpiface eth0 inet dhcp
UsingUsing ifupifup andand ifdownifdown
●
Only to run while settings are stored inOnly to run while settings are stored in
configuration fileconfiguration file
– ifup eth0ifup eth0
Bring up interfaceBring up interface
– ifdown eth0ifdown eth0
Shutdown interfaceShutdown interface
Configure Name ResolutionConfigure Name Resolution
●
/etc/hosts/etc/hosts
– Static mappingStatic mapping
127.0.0.1 localhost.localdomain localhost127.0.0.1 localhost.localdomain localhost
192.168.0.1 server1.my.com server1192.168.0.1 server1.my.com server1
●
/etc/resolv.conf/etc/resolv.conf
– DNS serverDNS server
search my.comsearch my.com
nameserver 192.168.0.1nameserver 192.168.0.1
nameserver 8.8.8.8nameserver 8.8.8.8
Configure Name ResolutionConfigure Name Resolution
●
/etc/nsswitch/etc/nsswitch
– Resolving orderResolving order
hosts: files dnshosts: files dns
Network Diagnostic ToolsNetwork Diagnostic Tools
●
ping hostping host
– Test connection availabilityTest connection availability
– Common optionsCommon options
­c ­c nn  : send: send nn packets onlypackets only
­w ­w nn  : set dead line in: set dead line in nn secondsseconds
Network Diagnostic ToolsNetwork Diagnostic Tools
●
traceroute hosttraceroute host
– Display all routing nods in the routing pathDisplay all routing nods in the routing path
– Common option:Common option:
­n ­n : Skip name resolving: Skip name resolving
●
mtr hostmtr host
– Advanced traceroute toolAdvanced traceroute tool
Network Diagnostic ToolsNetwork Diagnostic Tools
●
arp -aarp -a
– Display all entries in ARP cacheDisplay all entries in ARP cache
●
arp IParp IP
– Display specific entry in ARP cacheDisplay specific entry in ARP cache
●
arp -d IParp -d IP
– Delete an entryDelete an entry
●
arp -s IP MACarp -s IP MAC
– Set an entry manuallySet an entry manually
Network Diagnostic ToolsNetwork Diagnostic Tools
●
host DOMAIN_NAME [DNS_SERVER]host DOMAIN_NAME [DNS_SERVER]
– Lookup A record of a domain nameLookup A record of a domain name
– Common optionsCommon options
­t ­t : query type: query type
­v ­v : verbose output: verbose output
­W ­W nn  : time out in: time out in nn secondsseconds
●
host IP [DNS_SERVER]host IP [DNS_SERVER]
– The reverse DNS lookupThe reverse DNS lookup
Network Diagnostic ToolsNetwork Diagnostic Tools
●
dig DOMAIN_NAME [@DNS_SERVER]dig DOMAIN_NAME [@DNS_SERVER]
– Lookup domain name informationLookup domain name information
– Common optionsCommon options
­x IP ­x IP : reverse lookup: reverse lookup
+short +short : short answer: short answer
+trace +trace : trace recursive lookup from root down: trace recursive lookup from root down
Network Diagnostic ToolsNetwork Diagnostic Tools
●
whois DOMAIN_NAMEwhois DOMAIN_NAME
– Lookup domain registration informationLookup domain registration information
– Common optionsCommon options
­h server ­h server : specify whois server: specify whois server
Network Diagnostic ToolsNetwork Diagnostic Tools
●
netstatnetstat
– Display socket informationDisplay socket information
– Common optionsCommon options
­n ­n : skip domain name lookup: skip domain name lookup
­l ­l : display listening server sockets: display listening server sockets
­t ­t : display TCP sockets: display TCP sockets
­u ­u : display UDP sockets: display UDP sockets
­a ­a : display all sockets: display all sockets
­p ­p : display PID, root only: display PID, root only

More Related Content

What's hot

Vista 1600 c epon olt quick start manual(r1.2)
Vista 1600 c epon olt quick start manual(r1.2)Vista 1600 c epon olt quick start manual(r1.2)
Vista 1600 c epon olt quick start manual(r1.2)
Shanxi Cai
 
Lab 9 instructions
Lab 9 instructionsLab 9 instructions
Lab 9 instructions
trayyoo
 

What's hot (20)

Vista 1600 c epon olt quick start manual(r1.2)
Vista 1600 c epon olt quick start manual(r1.2)Vista 1600 c epon olt quick start manual(r1.2)
Vista 1600 c epon olt quick start manual(r1.2)
 
FreeLix: Semplicità & Controllo
FreeLix: Semplicità & ControlloFreeLix: Semplicità & Controllo
FreeLix: Semplicità & Controllo
 
LA Micro Stock Report 17th October 2013
LA Micro Stock Report 17th October 2013LA Micro Stock Report 17th October 2013
LA Micro Stock Report 17th October 2013
 
PROYECTO VLANS
PROYECTO VLANSPROYECTO VLANS
PROYECTO VLANS
 
Day 13.1..1 catalyst switch
Day 13.1..1 catalyst switchDay 13.1..1 catalyst switch
Day 13.1..1 catalyst switch
 
Alcatel vm
Alcatel vmAlcatel vm
Alcatel vm
 
W5100 datasheet v1_1_6 Ethernet Datasheet
W5100 datasheet v1_1_6 Ethernet Datasheet W5100 datasheet v1_1_6 Ethernet Datasheet
W5100 datasheet v1_1_6 Ethernet Datasheet
 
OSPF 2
OSPF 2OSPF 2
OSPF 2
 
La micro stock report 25th Sept 2013
La micro stock report 25th Sept 2013La micro stock report 25th Sept 2013
La micro stock report 25th Sept 2013
 
SzerverWebáruház készlet integrátoroknak 131207
SzerverWebáruház készlet integrátoroknak 131207SzerverWebáruház készlet integrátoroknak 131207
SzerverWebáruház készlet integrátoroknak 131207
 
LA Micro stock report 9.9.13
LA Micro stock report 9.9.13LA Micro stock report 9.9.13
LA Micro stock report 9.9.13
 
LA Micro Stock Report 30th October 2013
LA Micro Stock Report 30th October 2013LA Micro Stock Report 30th October 2013
LA Micro Stock Report 30th October 2013
 
BGP Route Aggregation Lab WorkBook
BGP Route Aggregation Lab WorkBookBGP Route Aggregation Lab WorkBook
BGP Route Aggregation Lab WorkBook
 
1
11
1
 
Lab 9 instructions
Lab 9 instructionsLab 9 instructions
Lab 9 instructions
 
LA Micro Stock Report 10th October 2013
LA Micro Stock Report 10th October 2013LA Micro Stock Report 10th October 2013
LA Micro Stock Report 10th October 2013
 
Howto ethereal-wireshark-trace en
Howto ethereal-wireshark-trace enHowto ethereal-wireshark-trace en
Howto ethereal-wireshark-trace en
 
Networking Tutorial Goes to Basic PPP Configuration
Networking Tutorial Goes to Basic PPP ConfigurationNetworking Tutorial Goes to Basic PPP Configuration
Networking Tutorial Goes to Basic PPP Configuration
 
LA Micro Stock Report 20th February 2014
 LA Micro Stock Report 20th February 2014 LA Micro Stock Report 20th February 2014
LA Micro Stock Report 20th February 2014
 
Cisco CCNA OSPF IPV6 Configuration
Cisco CCNA OSPF IPV6 ConfigurationCisco CCNA OSPF IPV6 Configuration
Cisco CCNA OSPF IPV6 Configuration
 

Viewers also liked

Ras pioverview
Ras pioverviewRas pioverview
Ras pioverview
Alec Clews
 
Power point (asking permission)
Power point (asking permission)Power point (asking permission)
Power point (asking permission)
ahmaddarda1505
 

Viewers also liked (20)

Ras pioverview
Ras pioverviewRas pioverview
Ras pioverview
 
Linux fundamental - Chap 16 System Rescue
Linux fundamental - Chap 16 System RescueLinux fundamental - Chap 16 System Rescue
Linux fundamental - Chap 16 System Rescue
 
Chap 17 advfs
Chap 17 advfsChap 17 advfs
Chap 17 advfs
 
Linux pipe & redirection
Linux pipe & redirectionLinux pipe & redirection
Linux pipe & redirection
 
Unix tutorial-08
Unix tutorial-08Unix tutorial-08
Unix tutorial-08
 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Linux network monitoring hands-on pratice
Linux network monitoring hands-on praticeLinux network monitoring hands-on pratice
Linux network monitoring hands-on pratice
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
Basics of-linux
Basics of-linuxBasics of-linux
Basics of-linux
 
Your first linux programs
Your first linux programsYour first linux programs
Your first linux programs
 
Power point (asking permission)
Power point (asking permission)Power point (asking permission)
Power point (asking permission)
 
Unix - Filters/Editors
Unix - Filters/EditorsUnix - Filters/Editors
Unix - Filters/Editors
 
Chap 19 web
Chap 19 webChap 19 web
Chap 19 web
 
Linux fundamental - Chap 05 filter
Linux fundamental - Chap 05 filterLinux fundamental - Chap 05 filter
Linux fundamental - Chap 05 filter
 
Linux fundamental - Chap 13 account management
Linux fundamental - Chap 13 account managementLinux fundamental - Chap 13 account management
Linux fundamental - Chap 13 account management
 
Linux fundamental - Chap 09 pkg
Linux fundamental - Chap 09 pkgLinux fundamental - Chap 09 pkg
Linux fundamental - Chap 09 pkg
 
Linux fundamental - Chap 14 shell script
Linux fundamental - Chap 14 shell scriptLinux fundamental - Chap 14 shell script
Linux fundamental - Chap 14 shell script
 
Linux fundamental - Chap 02 perm
Linux fundamental - Chap 02 permLinux fundamental - Chap 02 perm
Linux fundamental - Chap 02 perm
 
Importance of linux system fundamental in technical documentation reading
Importance of linux system fundamental in technical documentation readingImportance of linux system fundamental in technical documentation reading
Importance of linux system fundamental in technical documentation reading
 
Linux-Permission
Linux-PermissionLinux-Permission
Linux-Permission
 

Similar to Chap 18 net

ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
SilvioDias29
 
Lab- Full IPsec Implementation.pdf
Lab- Full IPsec Implementation.pdfLab- Full IPsec Implementation.pdf
Lab- Full IPsec Implementation.pdf
Nesibusami
 
IPv6SG_03_20121103
IPv6SG_03_20121103IPv6SG_03_20121103
IPv6SG_03_20121103
@ otsuka752
 
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docxCCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
keturahhazelhurst
 
debugging openstack neutron /w openvswitch
debugging openstack neutron /w openvswitchdebugging openstack neutron /w openvswitch
debugging openstack neutron /w openvswitch
어형 이
 
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxAll contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
galerussel59292
 
Ccna lab manual 640 802
Ccna lab manual 640 802Ccna lab manual 640 802
Ccna lab manual 640 802
manikkan
 

Similar to Chap 18 net (20)

ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
 
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/StableSR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
 
Detailed explanation of Basic router configuration
Detailed explanation of Basic router configurationDetailed explanation of Basic router configuration
Detailed explanation of Basic router configuration
 
Lab 3.5.1 basic frame relay
Lab 3.5.1 basic frame relayLab 3.5.1 basic frame relay
Lab 3.5.1 basic frame relay
 
Lab- Full IPsec Implementation.pdf
Lab- Full IPsec Implementation.pdfLab- Full IPsec Implementation.pdf
Lab- Full IPsec Implementation.pdf
 
Mg90 h102 ethernet master
Mg90 h102 ethernet masterMg90 h102 ethernet master
Mg90 h102 ethernet master
 
IPv6SG_03_20121103
IPv6SG_03_20121103IPv6SG_03_20121103
IPv6SG_03_20121103
 
RPKI: An Operator’s Implementation
RPKI: An Operator’s ImplementationRPKI: An Operator’s Implementation
RPKI: An Operator’s Implementation
 
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docxCCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
 
Frame Relay (point to point)
Frame Relay (point to point)Frame Relay (point to point)
Frame Relay (point to point)
 
debugging openstack neutron /w openvswitch
debugging openstack neutron /w openvswitchdebugging openstack neutron /w openvswitch
debugging openstack neutron /w openvswitch
 
Day 20.3 frame relay
Day 20.3 frame relay Day 20.3 frame relay
Day 20.3 frame relay
 
Day 20.1 configuringframerelay
Day 20.1 configuringframerelayDay 20.1 configuringframerelay
Day 20.1 configuringframerelay
 
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxAll contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
 
Linux router
Linux routerLinux router
Linux router
 
Ccna lab manual 640 802
Ccna lab manual 640 802Ccna lab manual 640 802
Ccna lab manual 640 802
 
Cisco asa active,active failover configuration
Cisco asa active,active failover configurationCisco asa active,active failover configuration
Cisco asa active,active failover configuration
 
Software Networking and Interfaces on Linux
Software Networking and Interfaces on LinuxSoftware Networking and Interfaces on Linux
Software Networking and Interfaces on Linux
 
managing your network environment
managing your network environmentmanaging your network environment
managing your network environment
 
Stu t17 a
Stu t17 aStu t17 a
Stu t17 a
 

More from Kenny (netman)

More from Kenny (netman) (20)

rpi_audio configuration steps
rpi_audio configuration stepsrpi_audio configuration steps
rpi_audio configuration steps
 
Rpi audio
Rpi audioRpi audio
Rpi audio
 
Ha opensuse
Ha opensuseHa opensuse
Ha opensuse
 
About the Course
About the CourseAbout the Course
About the Course
 
Linux fundamental - Chap 15 Job Scheduling
Linux fundamental - Chap 15 Job SchedulingLinux fundamental - Chap 15 Job Scheduling
Linux fundamental - Chap 15 Job Scheduling
 
Linux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware ManagementLinux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware Management
 
Linux fundamental - Chap 11 boot
Linux fundamental - Chap 11 bootLinux fundamental - Chap 11 boot
Linux fundamental - Chap 11 boot
 
Linux fundamental - Chap 10 fs
Linux fundamental - Chap 10 fsLinux fundamental - Chap 10 fs
Linux fundamental - Chap 10 fs
 
Linux fundamental - Chap 08 proc
Linux fundamental - Chap 08 procLinux fundamental - Chap 08 proc
Linux fundamental - Chap 08 proc
 
Linux fundamental - Chap 07 vi
Linux fundamental - Chap 07 viLinux fundamental - Chap 07 vi
Linux fundamental - Chap 07 vi
 
Linux fundamental - Chap 06 regx
Linux fundamental - Chap 06 regxLinux fundamental - Chap 06 regx
Linux fundamental - Chap 06 regx
 
Linux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archiveLinux fundamental - Chap 04 archive
Linux fundamental - Chap 04 archive
 
Linux fundamental - Chap 03 file
Linux fundamental - Chap 03 fileLinux fundamental - Chap 03 file
Linux fundamental - Chap 03 file
 
Linux fundamental - Chap 01 io
Linux fundamental - Chap 01 ioLinux fundamental - Chap 01 io
Linux fundamental - Chap 01 io
 
Linux fundamental - Chap 00 shell
Linux fundamental - Chap 00 shellLinux fundamental - Chap 00 shell
Linux fundamental - Chap 00 shell
 
Linux system security
Linux system securityLinux system security
Linux system security
 
Linux Network Monitoring
Linux Network MonitoringLinux Network Monitoring
Linux Network Monitoring
 
加密應用(GPG)
加密應用(GPG)加密應用(GPG)
加密應用(GPG)
 
金鑰管理 (PKI)
金鑰管理 (PKI)金鑰管理 (PKI)
金鑰管理 (PKI)
 
Linux firewall
Linux firewallLinux firewall
Linux firewall
 

Recently uploaded

Recently uploaded (20)

Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 

Chap 18 net

  • 1. Chapter 18Chapter 18 Network ConfigurationNetwork Configuration
  • 2. Network Devices in LinuxNetwork Devices in Linux ● lolo – Loop back deviceLoop back device – IP address is 127.0.0.1 permanentlyIP address is 127.0.0.1 permanently ● ethethNN – Ethernet interfaceEthernet interface – Device number starting from 0Device number starting from 0 ● wlanwlanNN – Wireless interfaceWireless interface – Device number starting from 0Device number starting from 0
  • 3. Display Interface ConfigurationDisplay Interface Configuration ● ifconfigifconfig eth0 Link encap:Ethernet HWaddr 00:16:d3:32:ea:dceth0 Link encap:Ethernet HWaddr 00:16:d3:32:ea:dc inet addr:192.168.100.57 Bcast:192.168.100.255 Mask:255.255.255.0inet addr:192.168.100.57 Bcast:192.168.100.255 Mask:255.255.255.0 inet6 addr: fe80::216:d3ff:fe32:eadc/64 Scope:Linkinet6 addr: fe80::216:d3ff:fe32:eadc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:18973 errors:0 dropped:0 overruns:0 frame:0RX packets:18973 errors:0 dropped:0 overruns:0 frame:0 TX packets:16624 errors:0 dropped:0 overruns:0 carrier:0TX packets:16624 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000collisions:0 txqueuelen:1000 RX bytes:12613255 (12.6 MB) TX bytes:2686873 (2.6 MB)RX bytes:12613255 (12.6 MB) TX bytes:2686873 (2.6 MB) Interrupt:16 Memory:ee000000-ee020000Interrupt:16 Memory:ee000000-ee020000 lo Link encap:Local Loopbacklo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Hostinet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:523 errors:0 dropped:0 overruns:0 frame:0RX packets:523 errors:0 dropped:0 overruns:0 frame:0 TX packets:523 errors:0 dropped:0 overruns:0 carrier:0TX packets:523 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0collisions:0 txqueuelen:0 RX bytes:38418 (38.4 KB) TX bytes:38418 (38.4 KB)RX bytes:38418 (38.4 KB) TX bytes:38418 (38.4 KB)
  • 4. Display Address InformationDisplay Address Information ● ip addr showip addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWNUNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host loinet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forevervalid_lft forever preferred_lft forever inet6 ::1/128 scope hostinet6 ::1/128 scope host valid_lft forever preferred_lft forevervalid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000state UP qlen 1000 link/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:fflink/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:ff inet 192.168.100.57/24 brd 192.168.100.255 scope global eth0inet 192.168.100.57/24 brd 192.168.100.255 scope global eth0 valid_lft forever preferred_lft forevervalid_lft forever preferred_lft forever inet6 fe80::216:d3ff:fe32:eadc/64 scope linkinet6 fe80::216:d3ff:fe32:eadc/64 scope link valid_lft forever preferred_lft forevervalid_lft forever preferred_lft forever
  • 5. Display Link InformationDisplay Link Information ● ip link showip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWNUNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000state UP qlen 1000 link/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:fflink/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:ff
  • 6. Display Link CharacteristicsDisplay Link Characteristics ● ip ­s link showip ­s link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWNUNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 RX: bytes packets errors dropped overrun mcastRX: bytes packets errors dropped overrun mcast 38418 523 0 0 0 038418 523 0 0 0 0 TX: bytes packets errors dropped carrier collsnsTX: bytes packets errors dropped carrier collsns 38418 523 0 0 0 038418 523 0 0 0 0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000state UP qlen 1000 link/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:fflink/ether 00:16:d3:32:ea:dc brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcastRX: bytes packets errors dropped overrun mcast 12629558 19078 0 0 0 24512629558 19078 0 0 0 245 TX: bytes packets errors dropped carrier collsnsTX: bytes packets errors dropped carrier collsns 2711702 16782 0 0 0 02711702 16782 0 0 0 0
  • 7. Display Routing InformationDisplay Routing Information ● route ­nroute ­n Kernel IP routing tableKernel IP routing table Destination Gateway Genmask Flags Metric Ref Use IfaceDestination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.100.11 0.0.0.0 UG 0 0 0 eth00.0.0.0 192.168.100.11 0.0.0.0 UG 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
  • 8. Display Routing InformationDisplay Routing Information ● ip route showip route show default via 192.168.100.11 dev eth0 proto staticdefault via 192.168.100.11 dev eth0 proto static 169.254.0.0/16 dev eth0 scope link metric 1000169.254.0.0/16 dev eth0 scope link metric 1000 192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.57192.168.100.0/24 dev eth0 proto kernel scope link src 192.168.100.57 metric 1metric 1
  • 9. Display DNS SettingsDisplay DNS Settings ● cat /etc/resolv.confcat /etc/resolv.conf cat /etc/resolv.confcat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTENOVERWRITTEN nameserver 192.168.100.11nameserver 192.168.100.11
  • 10. Change IP SettingsChange IP Settings ● Add IP:Add IP: – ifconfig eth0:0 IP/MASKifconfig eth0:0 IP/MASK – ip address add IP/MASK dev eth0ip address add IP/MASK dev eth0 ● Delete IP:Delete IP: – ifconfig eth0:0 downifconfig eth0:0 down – ip address del IP/MASK dev eth0ip address del IP/MASK dev eth0
  • 11. Change Route SettingsChange Route Settings ● Add route:Add route: – route add ­net NET/MASK gw GW_IProute add ­net NET/MASK gw GW_IP – ip route add NET/MASK via GW_IPip route add NET/MASK via GW_IP ● Delete route:Delete route: – route del ­net NET/MASK gw GW_IProute del ­net NET/MASK gw GW_IP – ip route del NET/MASK via GW_IPip route del NET/MASK via GW_IP
  • 12. Persistent IP SettingsPersistent IP Settings ● Redhat/CentOS:Redhat/CentOS: vi /etc/sysconfig/network­scripts/eth0vi /etc/sysconfig/network­scripts/eth0 # Intel Corporation 82545EM Gigabit Ethernet # Intel Corporation 82545EM Gigabit Ethernet  Controller (Copper)Controller (Copper) DEVICE=eth0DEVICE=eth0 BOOTPROTO=noneBOOTPROTO=none HWADDR=00:0c:29:05:e1:d2HWADDR=00:0c:29:05:e1:d2 IPADDR=163.16.5.180IPADDR=163.16.5.180 NETMASK=255.255.255.0NETMASK=255.255.255.0 ONBOOT=yesONBOOT=yes GATEWAY=163.16.5.254GATEWAY=163.16.5.254 TYPE=EthernetTYPE=Ethernet USERCTL=noUSERCTL=no IPV6INIT=noIPV6INIT=no PEERDNS=noPEERDNS=no
  • 13. Persistent IP SettingsPersistent IP Settings ● Ubuntu:Ubuntu: vi /etc/network/interfacesvi /etc/network/interfaces auto loauto lo iface lo inet loopbackiface lo inet loopback iface eth0 inet staticiface eth0 inet static address 192.168.0.2address 192.168.0.2 netmask 255.255.255.0netmask 255.255.255.0
  • 14. DHCP IP SettingsDHCP IP Settings ● Redhat/CentOS:Redhat/CentOS: vi /etc/sysconfig/network­scripts/eth0vi /etc/sysconfig/network­scripts/eth0 # Intel Corporation 82545EM Gigabit Ethernet # Intel Corporation 82545EM Gigabit Ethernet  Controller (Copper)Controller (Copper) DEVICE=eth0DEVICE=eth0 BOOTPROTO=dhcpBOOTPROTO=dhcp HWADDR=00:0c:29:05:e1:d2HWADDR=00:0c:29:05:e1:d2 ONBOOT=yesONBOOT=yes TYPE=EthernetTYPE=Ethernet USERCTL=yesUSERCTL=yes IPV6INIT=noIPV6INIT=no PEERDNS=yesPEERDNS=yes
  • 15. DHCP IP SettingsDHCP IP Settings ● Ubuntu:Ubuntu: vi /etc/network/interfacesvi /etc/network/interfaces auto loauto lo iface lo inet loopbackiface lo inet loopback auto eth0auto eth0 iface eth0 inet dhcpiface eth0 inet dhcp
  • 16. UsingUsing ifupifup andand ifdownifdown ● Only to run while settings are stored inOnly to run while settings are stored in configuration fileconfiguration file – ifup eth0ifup eth0 Bring up interfaceBring up interface – ifdown eth0ifdown eth0 Shutdown interfaceShutdown interface
  • 17. Configure Name ResolutionConfigure Name Resolution ● /etc/hosts/etc/hosts – Static mappingStatic mapping 127.0.0.1 localhost.localdomain localhost127.0.0.1 localhost.localdomain localhost 192.168.0.1 server1.my.com server1192.168.0.1 server1.my.com server1 ● /etc/resolv.conf/etc/resolv.conf – DNS serverDNS server search my.comsearch my.com nameserver 192.168.0.1nameserver 192.168.0.1 nameserver 8.8.8.8nameserver 8.8.8.8
  • 18. Configure Name ResolutionConfigure Name Resolution ● /etc/nsswitch/etc/nsswitch – Resolving orderResolving order hosts: files dnshosts: files dns
  • 19. Network Diagnostic ToolsNetwork Diagnostic Tools ● ping hostping host – Test connection availabilityTest connection availability – Common optionsCommon options ­c ­c nn  : send: send nn packets onlypackets only ­w ­w nn  : set dead line in: set dead line in nn secondsseconds
  • 20. Network Diagnostic ToolsNetwork Diagnostic Tools ● traceroute hosttraceroute host – Display all routing nods in the routing pathDisplay all routing nods in the routing path – Common option:Common option: ­n ­n : Skip name resolving: Skip name resolving ● mtr hostmtr host – Advanced traceroute toolAdvanced traceroute tool
  • 21. Network Diagnostic ToolsNetwork Diagnostic Tools ● arp -aarp -a – Display all entries in ARP cacheDisplay all entries in ARP cache ● arp IParp IP – Display specific entry in ARP cacheDisplay specific entry in ARP cache ● arp -d IParp -d IP – Delete an entryDelete an entry ● arp -s IP MACarp -s IP MAC – Set an entry manuallySet an entry manually
  • 22. Network Diagnostic ToolsNetwork Diagnostic Tools ● host DOMAIN_NAME [DNS_SERVER]host DOMAIN_NAME [DNS_SERVER] – Lookup A record of a domain nameLookup A record of a domain name – Common optionsCommon options ­t ­t : query type: query type ­v ­v : verbose output: verbose output ­W ­W nn  : time out in: time out in nn secondsseconds ● host IP [DNS_SERVER]host IP [DNS_SERVER] – The reverse DNS lookupThe reverse DNS lookup
  • 23. Network Diagnostic ToolsNetwork Diagnostic Tools ● dig DOMAIN_NAME [@DNS_SERVER]dig DOMAIN_NAME [@DNS_SERVER] – Lookup domain name informationLookup domain name information – Common optionsCommon options ­x IP ­x IP : reverse lookup: reverse lookup +short +short : short answer: short answer +trace +trace : trace recursive lookup from root down: trace recursive lookup from root down
  • 24. Network Diagnostic ToolsNetwork Diagnostic Tools ● whois DOMAIN_NAMEwhois DOMAIN_NAME – Lookup domain registration informationLookup domain registration information – Common optionsCommon options ­h server ­h server : specify whois server: specify whois server
  • 25. Network Diagnostic ToolsNetwork Diagnostic Tools ● netstatnetstat – Display socket informationDisplay socket information – Common optionsCommon options ­n ­n : skip domain name lookup: skip domain name lookup ­l ­l : display listening server sockets: display listening server sockets ­t ­t : display TCP sockets: display TCP sockets ­u ­u : display UDP sockets: display UDP sockets ­a ­a : display all sockets: display all sockets ­p ­p : display PID, root only: display PID, root only