SlideShare a Scribd company logo
Linux Network Tools ,[object Object],Armando   Reis - PT/DTS
[object Object],[object Object],[object Object],[object Object],What’s it all about? ,[object Object],[object Object],[object Object],[object Object]
The basics - IPv4 ,[object Object],[object Object],[object Object],[object Object]
The basics - IPv6 ,[object Object],[object Object],[object Object],[object Object],[object Object]
The basics - Addreses ,[object Object],[object Object],[object Object],[object Object],[object Object],111110110011111111111000101010010 251.63.248.170 111111111111111111111000000000000 255.255.128.0 111110110011111111111000000000000 251.63.128.0 111110110011111111111111111111111 251.63.255.255
A (very basic) routing intro ,[object Object],[object Object]
Routing intro - II ,[object Object],[object Object],[object Object]
More info? ,[object Object],[object Object],[object Object],[object Object],[object Object]
Basic network tools ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ifconfig  - Set or show network interface parameters. /sbin/ifconfig eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255  /sbin/ifconfig -a eth0  Link encap:Ethernet  HWaddr  00:1b:fc:90:ce:73   inet addr: 192.168.1.101   Bcast: 192.168.1.255   Mask: 255.255.255.0 inet6 addr:  fe80::21b:fcff:fe90:ce73/64  Scope:Link UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX packets:34379438 errors:0 dropped:6 overruns:0 frame:0 TX packets:32971104 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000  RX bytes:22215926752 (22.2 GB)  TX bytes:23045492526 (23.0 GB) Interrupt:17  lo  Link encap:Local Loopback  inet addr:127.0.0.1  Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING  MTU:16436  Metric:1 RX packets:4096 errors:0 dropped:0 overruns:0 frame:0 TX packets:4096 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0  RX bytes:212814 (212.8 KB)  TX bytes:212814 (212.8 KB)
arp - Manages ‘ethernet’ addresses  ,[object Object],[object Object],[object Object]
ethtool - Manages a NIC’s operating parameters.  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Questions?
ping  - Basic testing ,[object Object],[object Object],[object Object]
route  - Show or manipulate routes. asr@aqua:~$ route -n Kernel IP routing table Destination  Gateway  Genmask  Flags Metric Ref  Use Iface 213.13.144.37  192.168.1.254  255.255.255.255 UGH  0  0  0 eth0 10.135.3.51  0.0.0.0  255.255.255.255 UH  0  0  0 ppp0 10.134.15.0  0.0.0.0  255.255.255.128 U  0  0  0 ppp0 192.168.1.0  0.0.0.0  255.255.255.0  U  0  0  0 eth0 10.135.0.0  0.0.0.0  255.255.0.0  U  0  0  0 ppp0 0.0.0.0  192.168.1.254  0.0.0.0  UG  100  0  0 eth0 asr@aqua:~$ route add -net 172.28.18.0 netmask 255.255.255.0 gw 192.168.1.250 asr@aqua:~$ route add -net 10.134.96.0 netmask 255.255.255.0 dev ppp0
netstat  - Show network status. asr@aqua:~$ netstat -an Active Internet connections (servers and established)Proto Recv-Q Send-Q Local Address  Foreign Address  State  tcp  0  0 0.0.0.0:4130  0.0.0.0:*  LISTEN  tcp  0  0 0.0.0.0:4131  0.0.0.0:*  LISTEN  tcp  0  0 0.0.0.0:4132  0.0.0.0:*  LISTEN  ...  tcp  0  0 0.0.0.0:111  0.0.0.0:*  LISTEN  tcp  0  0 0.0.0.0:22  0.0.0.0:*  LISTEN  tcp  0  0 127.0.0.1:25  0.0.0.0:*  LISTEN  ...  tcp  1  0 192.168.1.101:52242  129.89.61.70:80  CLOSE_WAIT tcp  1  0 192.168.1.101:41412  209.85.229.147:80  CLOSE_WAIT tcp  1  0 192.168.1.101:42311  209.85.229.105:80  CLOSE_WAIT tcp  1  0 192.168.1.101:42834  130.75.116.202:80  CLOSE_WAIT ...tcp  0  0 192.168.1.101:42789  213.13.144.37:1723  ESTABLISHEDtcp  0  0 192.168.1.101:48983  74.125.4.148:80  ESTABLISHEDtcp  0  0 192.168.1.101:41347  209.85.227.102:80  ESTABLISHED Active Internet connections (servers and established)Proto Recv-Q Send-Q Local Address  Foreign Address  State  tcp  0  0 0.0.0.0:4130  0.0.0.0:*  LISTEN  tcp  0  0 0.0.0.0:4131  0.0.0.0:*  LISTEN  tcp  0  0 0.0.0.0:4132  0.0.0.0:*  LISTEN  ...  tcp  0  0 0.0.0.0:111  0.0.0.0:*  LISTEN  tcp  0  0 0.0.0.0:22  0.0.0.0:*  LISTEN  tcp  0  0 127.0.0.1:25  0.0.0.0:*  LISTEN  ...  tcp  1  0 192.168.1.101:52242  129.89.61.70:80  CLOSE_WAIT tcp  1  0 192.168.1.101:41412  209.85.229.147:80  CLOSE_WAIT tcp  1  0 192.168.1.101:42311  209.85.229.105:80  CLOSE_WAIT tcp  1  0 192.168.1.101:42834  130.75.116.202:80  CLOSE_WAIT ...tcp  0  0 192.168.1.101:42789  213.13.144.37:1723  ESTABLISHEDtcp  0  0 192.168.1.101:48983  74.125.4.148:80  ESTABLISHEDtcp  0  0 192.168.1.101:41347  209.85.227.102:80  ESTABLISHED
netstat  - Show more network information. asr@aqua:~$ sudo netstat -antup Active Internet connections (servers and established) ... tcp  0  0 0.0.0.0:111  0.0.0.0:*  LISTEN  2243/portmap  tcp  0  0 0.0.0.0:22  0.0.0.0:*  LISTEN  3335/sshd  tcp  0  0 127.0.0.1:631  0.0.0.0:*  LISTEN  3517/cupsd  tcp  0  0 127.0.0.1:6010  0.0.0.0:*  LISTEN  9217/4  tcp  0  0 192.168.1.101:50874  213.13.144.37:1723  ESTABLISHED 7355/pptp  tcp  0  144 192.168.1.101:22  192.168.1.103:51455  ESTABLISHED 9208/sshdtcp  0  0 192.168.1.101:58729  212.55.154.196:22  ESTABLISHED 7617/ssh  ...tcp6  0  0 :::22  :::*  LISTEN  3335/sshd  udp  0  0 0.0.0.0:514  0.0.0.0:*  2506/syslogd  udp  0  0 0.0.0.0:53528  0.0.0.0:*  2264/rpc.statd  udp  0  0 0.0.0.0:68  0.0.0.0:*  3200/dhclient3  udp  0  0 0.0.0.0:111  0.0.0.0:*  2243/portmap  ...tcp6  0  0 :::22  :::*  LISTEN  3335/sshd  udp  0  0 0.0.0.0:514  0.0.0.0:*  2506/syslogd  udp  0  0 0.0.0.0:53528  0.0.0.0:*  2264/rpc.statd  udp  0  0 0.0.0.0:68  0.0.0.0:*  3200/dhclient3  udp  0  0 0.0.0.0:111  0.0.0.0:*  2243/portmap
traceroute  - Show the route between 2 hosts. ,[object Object],[object Object],[object Object]
Further reading ? ,[object Object],[object Object]
Memorize this :) http://en.wikipedia.org/wiki/File:Tcp_state_diagram_fixed.svg
More networking tools ,[object Object],[object Object],[object Object],[object Object],[object Object]
iptables ,[object Object],[object Object],[object Object]
netcat ,[object Object],[object Object],[object Object]
rinetd ,[object Object],[object Object],[object Object]
tcpdump ,[object Object],[object Object],[object Object]
tcpreplay ,[object Object],[object Object],[object Object]
Questions?
Thank you Armando   Reis - PT/DTS

More Related Content

What's hot

Linux network tools (Maarten Blomme)
Linux network tools (Maarten Blomme)Linux network tools (Maarten Blomme)
Linux network tools (Maarten Blomme)
Avansa Mid- en Zuidwest
 
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
3Anetwork com
 
Lab 9 instructions
Lab 9 instructionsLab 9 instructions
Lab 9 instructions
trayyoo
 
Linux router
Linux routerLinux router
Vyos clustering ipsec
Vyos clustering ipsecVyos clustering ipsec
Vyos clustering ipsec
Gireesh Hariharasubramony
 
CCNA Lab Guide
CCNA Lab GuideCCNA Lab Guide
CCNA Lab Guide
Salachudin Emir
 
Student packet tracer manual v1.1
Student packet tracer manual v1.1Student packet tracer manual v1.1
Student packet tracer manual v1.1
milkux
 
PBR-LB - Direct Server Return Load Balancing using Policy Based Routing (MEMO)
PBR-LB - Direct Server Return Load Balancing using Policy Based Routing (MEMO)PBR-LB - Direct Server Return Load Balancing using Policy Based Routing (MEMO)
PBR-LB - Direct Server Return Load Balancing using Policy Based Routing (MEMO)
Naoto MATSUMOTO
 
Practice Lab CSC
Practice Lab CSCPractice Lab CSC
Practice Lab CSC
Salachudin Emir
 
Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011
Dân Chơi
 
How to use mmdvm host wif main board
How to use mmdvm host wif main boardHow to use mmdvm host wif main board
How to use mmdvm host wif main board
AURELIO PY5BK
 
CCNP Lab Guide CCIE University
CCNP Lab Guide CCIE UniversityCCNP Lab Guide CCIE University
CCNP Lab Guide CCIE University
Salachudin Emir
 
Configuring GRE Tunnel Through a Cisco ASA Firewall
Configuring GRE Tunnel Through a Cisco ASA FirewallConfiguring GRE Tunnel Through a Cisco ASA Firewall
Configuring GRE Tunnel Through a Cisco ASA Firewall
Harris Andrea
 
OSPF Authentication
OSPF Authentication OSPF Authentication
OSPF Authentication
NetProtocol Xpert
 
Eincop Netwax Lab: Site 2 Site VPN with Routing Protocols
Eincop Netwax Lab: Site 2 Site VPN with Routing ProtocolsEincop Netwax Lab: Site 2 Site VPN with Routing Protocols
Eincop Netwax Lab: Site 2 Site VPN with Routing Protocols
Netwax Lab
 
Ha systems-with-heartbeatv2
Ha systems-with-heartbeatv2Ha systems-with-heartbeatv2
Ha systems-with-heartbeatv2
Marian Marinov
 
CCNA - Routing & Switching Commands
CCNA - Routing & Switching CommandsCCNA - Routing & Switching Commands
CCNA - Routing & Switching Commands
Eng. Emad Al-Atoum
 
Policy Based Routing
Policy Based RoutingPolicy Based Routing
Policy Based Routing
NetProtocol Xpert
 

What's hot (18)

Linux network tools (Maarten Blomme)
Linux network tools (Maarten Blomme)Linux network tools (Maarten Blomme)
Linux network tools (Maarten Blomme)
 
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
 
Lab 9 instructions
Lab 9 instructionsLab 9 instructions
Lab 9 instructions
 
Linux router
Linux routerLinux router
Linux router
 
Vyos clustering ipsec
Vyos clustering ipsecVyos clustering ipsec
Vyos clustering ipsec
 
CCNA Lab Guide
CCNA Lab GuideCCNA Lab Guide
CCNA Lab Guide
 
Student packet tracer manual v1.1
Student packet tracer manual v1.1Student packet tracer manual v1.1
Student packet tracer manual v1.1
 
PBR-LB - Direct Server Return Load Balancing using Policy Based Routing (MEMO)
PBR-LB - Direct Server Return Load Balancing using Policy Based Routing (MEMO)PBR-LB - Direct Server Return Load Balancing using Policy Based Routing (MEMO)
PBR-LB - Direct Server Return Load Balancing using Policy Based Routing (MEMO)
 
Practice Lab CSC
Practice Lab CSCPractice Lab CSC
Practice Lab CSC
 
Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011
 
How to use mmdvm host wif main board
How to use mmdvm host wif main boardHow to use mmdvm host wif main board
How to use mmdvm host wif main board
 
CCNP Lab Guide CCIE University
CCNP Lab Guide CCIE UniversityCCNP Lab Guide CCIE University
CCNP Lab Guide CCIE University
 
Configuring GRE Tunnel Through a Cisco ASA Firewall
Configuring GRE Tunnel Through a Cisco ASA FirewallConfiguring GRE Tunnel Through a Cisco ASA Firewall
Configuring GRE Tunnel Through a Cisco ASA Firewall
 
OSPF Authentication
OSPF Authentication OSPF Authentication
OSPF Authentication
 
Eincop Netwax Lab: Site 2 Site VPN with Routing Protocols
Eincop Netwax Lab: Site 2 Site VPN with Routing ProtocolsEincop Netwax Lab: Site 2 Site VPN with Routing Protocols
Eincop Netwax Lab: Site 2 Site VPN with Routing Protocols
 
Ha systems-with-heartbeatv2
Ha systems-with-heartbeatv2Ha systems-with-heartbeatv2
Ha systems-with-heartbeatv2
 
CCNA - Routing & Switching Commands
CCNA - Routing & Switching CommandsCCNA - Routing & Switching Commands
CCNA - Routing & Switching Commands
 
Policy Based Routing
Policy Based RoutingPolicy Based Routing
Policy Based Routing
 

Viewers also liked

Linux networking commands short
Linux networking commands shortLinux networking commands short
Linux networking commands short
Sayed Ahmed
 
Linux networking commands
Linux networking commandsLinux networking commands
Linux networking commands
Sayed Ahmed
 
Linux networking
Linux networkingLinux networking
Linux networking
sbmguys
 
Configuration dns sous linux
Configuration  dns sous linuxConfiguration  dns sous linux
Configuration dns sous linuxBalamine Gassama
 
Networking in Gnu/Linux
Networking in Gnu/LinuxNetworking in Gnu/Linux
Networking in Gnu/Linux
Ahmed Mekkawy
 
Introduction to tcp ip linux networking
Introduction to tcp ip   linux networkingIntroduction to tcp ip   linux networking
Introduction to tcp ip linux networking
Sreenatha Reddy K R
 
Course 102: Lecture 20: Networking In Linux (Basic Concepts)
Course 102: Lecture 20: Networking In Linux (Basic Concepts) Course 102: Lecture 20: Networking In Linux (Basic Concepts)
Course 102: Lecture 20: Networking In Linux (Basic Concepts)
Ahmed El-Arabawy
 
Chapter09 -- networking with unix and linux
Chapter09  -- networking with unix and linuxChapter09  -- networking with unix and linux
Chapter09 -- networking with unix and linux
Raja Waseem Akhtar
 
An Overview of Linux Networking Options
An Overview of Linux Networking OptionsAn Overview of Linux Networking Options
An Overview of Linux Networking Options
Scott Lowe
 
The TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux KernelThe TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux Kernel
Divye Kapoor
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking Walkthrough
Thomas Graf
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commands
tmavroidis
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
Thomas Graf
 

Viewers also liked (13)

Linux networking commands short
Linux networking commands shortLinux networking commands short
Linux networking commands short
 
Linux networking commands
Linux networking commandsLinux networking commands
Linux networking commands
 
Linux networking
Linux networkingLinux networking
Linux networking
 
Configuration dns sous linux
Configuration  dns sous linuxConfiguration  dns sous linux
Configuration dns sous linux
 
Networking in Gnu/Linux
Networking in Gnu/LinuxNetworking in Gnu/Linux
Networking in Gnu/Linux
 
Introduction to tcp ip linux networking
Introduction to tcp ip   linux networkingIntroduction to tcp ip   linux networking
Introduction to tcp ip linux networking
 
Course 102: Lecture 20: Networking In Linux (Basic Concepts)
Course 102: Lecture 20: Networking In Linux (Basic Concepts) Course 102: Lecture 20: Networking In Linux (Basic Concepts)
Course 102: Lecture 20: Networking In Linux (Basic Concepts)
 
Chapter09 -- networking with unix and linux
Chapter09  -- networking with unix and linuxChapter09  -- networking with unix and linux
Chapter09 -- networking with unix and linux
 
An Overview of Linux Networking Options
An Overview of Linux Networking OptionsAn Overview of Linux Networking Options
An Overview of Linux Networking Options
 
The TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux KernelThe TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux Kernel
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking Walkthrough
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commands
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 

Similar to Linux networking

Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
維泰 蔡
 
Unix 4 en
Unix 4 enUnix 4 en
Unix 4 en
Simonas Kareiva
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use Them
Sneha Inguva
 
Debugging linux issues with eBPF
Debugging linux issues with eBPFDebugging linux issues with eBPF
Debugging linux issues with eBPF
Ivan Babrou
 
Lab telematicos
Lab telematicosLab telematicos
Lab telematicos
León Velarde
 
Analysis of Compromised Linux Server
Analysis of Compromised Linux ServerAnalysis of Compromised Linux Server
Analysis of Compromised Linux Server
anandvaidya
 
Quic illustrated
Quic illustratedQuic illustrated
Quic illustrated
Alexander Krizhanovsky
 
AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)
Amazon Web Services
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet Count
Amazon Web Services
 
Day2
Day2Day2
Day2
Jai4uk
 
Debugging Ruby
Debugging RubyDebugging Ruby
Debugging Ruby
Aman Gupta
 
Tri aoi training-supplementary_2011.01
Tri aoi training-supplementary_2011.01Tri aoi training-supplementary_2011.01
Tri aoi training-supplementary_2011.01
Ralph Nguyen
 
[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting
Open Source Consulting
 
Network commands
Network commandsNetwork commands
Network commands
Dr. Mahadev Gawas
 
VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法
Naoto MATSUMOTO
 
CCIE Lab - IGP Routing
CCIE Lab -  IGP Routing  CCIE Lab -  IGP Routing
CCIE Lab - IGP Routing
Kristof De Brouwer
 
Packet Card Knowledge Transferfinal
Packet Card Knowledge TransferfinalPacket Card Knowledge Transferfinal
Packet Card Knowledge Transferfinal
Abdel-Fattah M. Hmoud
 
OSTU - Sake Blok on Packet Capturing with Tshark
OSTU - Sake Blok on Packet Capturing with TsharkOSTU - Sake Blok on Packet Capturing with Tshark
OSTU - Sake Blok on Packet Capturing with Tshark
Denny K
 
Open stack advanced_part
Open stack advanced_partOpen stack advanced_part
Open stack advanced_part
lilliput12
 
LF_OVS_17_OVS-DPDK Installation and Gotchas
LF_OVS_17_OVS-DPDK Installation and GotchasLF_OVS_17_OVS-DPDK Installation and Gotchas
LF_OVS_17_OVS-DPDK Installation and Gotchas
LF_OpenvSwitch
 

Similar to Linux networking (20)

Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
 
Unix 4 en
Unix 4 enUnix 4 en
Unix 4 en
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use Them
 
Debugging linux issues with eBPF
Debugging linux issues with eBPFDebugging linux issues with eBPF
Debugging linux issues with eBPF
 
Lab telematicos
Lab telematicosLab telematicos
Lab telematicos
 
Analysis of Compromised Linux Server
Analysis of Compromised Linux ServerAnalysis of Compromised Linux Server
Analysis of Compromised Linux Server
 
Quic illustrated
Quic illustratedQuic illustrated
Quic illustrated
 
AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet Count
 
Day2
Day2Day2
Day2
 
Debugging Ruby
Debugging RubyDebugging Ruby
Debugging Ruby
 
Tri aoi training-supplementary_2011.01
Tri aoi training-supplementary_2011.01Tri aoi training-supplementary_2011.01
Tri aoi training-supplementary_2011.01
 
[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting[오픈소스컨설팅] Linux Network Troubleshooting
[오픈소스컨설팅] Linux Network Troubleshooting
 
Network commands
Network commandsNetwork commands
Network commands
 
VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法
 
CCIE Lab - IGP Routing
CCIE Lab -  IGP Routing  CCIE Lab -  IGP Routing
CCIE Lab - IGP Routing
 
Packet Card Knowledge Transferfinal
Packet Card Knowledge TransferfinalPacket Card Knowledge Transferfinal
Packet Card Knowledge Transferfinal
 
OSTU - Sake Blok on Packet Capturing with Tshark
OSTU - Sake Blok on Packet Capturing with TsharkOSTU - Sake Blok on Packet Capturing with Tshark
OSTU - Sake Blok on Packet Capturing with Tshark
 
Open stack advanced_part
Open stack advanced_partOpen stack advanced_part
Open stack advanced_part
 
LF_OVS_17_OVS-DPDK Installation and Gotchas
LF_OVS_17_OVS-DPDK Installation and GotchasLF_OVS_17_OVS-DPDK Installation and Gotchas
LF_OVS_17_OVS-DPDK Installation and Gotchas
 

Recently uploaded

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 

Recently uploaded (20)

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 

Linux networking

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. ifconfig - Set or show network interface parameters. /sbin/ifconfig eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255 /sbin/ifconfig -a eth0 Link encap:Ethernet HWaddr 00:1b:fc:90:ce:73 inet addr: 192.168.1.101 Bcast: 192.168.1.255 Mask: 255.255.255.0 inet6 addr: fe80::21b:fcff:fe90:ce73/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:34379438 errors:0 dropped:6 overruns:0 frame:0 TX packets:32971104 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:22215926752 (22.2 GB) TX bytes:23045492526 (23.0 GB) Interrupt:17 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4096 errors:0 dropped:0 overruns:0 frame:0 TX packets:4096 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:212814 (212.8 KB) TX bytes:212814 (212.8 KB)
  • 11.
  • 12.
  • 14.
  • 15. route - Show or manipulate routes. asr@aqua:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 213.13.144.37 192.168.1.254 255.255.255.255 UGH 0 0 0 eth0 10.135.3.51 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.134.15.0 0.0.0.0 255.255.255.128 U 0 0 0 ppp0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.135.0.0 0.0.0.0 255.255.0.0 U 0 0 0 ppp0 0.0.0.0 192.168.1.254 0.0.0.0 UG 100 0 0 eth0 asr@aqua:~$ route add -net 172.28.18.0 netmask 255.255.255.0 gw 192.168.1.250 asr@aqua:~$ route add -net 10.134.96.0 netmask 255.255.255.0 dev ppp0
  • 16. netstat - Show network status. asr@aqua:~$ netstat -an Active Internet connections (servers and established)Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:4130 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:4131 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:4132 0.0.0.0:* LISTEN ... tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN ... tcp 1 0 192.168.1.101:52242 129.89.61.70:80 CLOSE_WAIT tcp 1 0 192.168.1.101:41412 209.85.229.147:80 CLOSE_WAIT tcp 1 0 192.168.1.101:42311 209.85.229.105:80 CLOSE_WAIT tcp 1 0 192.168.1.101:42834 130.75.116.202:80 CLOSE_WAIT ...tcp 0 0 192.168.1.101:42789 213.13.144.37:1723 ESTABLISHEDtcp 0 0 192.168.1.101:48983 74.125.4.148:80 ESTABLISHEDtcp 0 0 192.168.1.101:41347 209.85.227.102:80 ESTABLISHED Active Internet connections (servers and established)Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:4130 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:4131 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:4132 0.0.0.0:* LISTEN ... tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN ... tcp 1 0 192.168.1.101:52242 129.89.61.70:80 CLOSE_WAIT tcp 1 0 192.168.1.101:41412 209.85.229.147:80 CLOSE_WAIT tcp 1 0 192.168.1.101:42311 209.85.229.105:80 CLOSE_WAIT tcp 1 0 192.168.1.101:42834 130.75.116.202:80 CLOSE_WAIT ...tcp 0 0 192.168.1.101:42789 213.13.144.37:1723 ESTABLISHEDtcp 0 0 192.168.1.101:48983 74.125.4.148:80 ESTABLISHEDtcp 0 0 192.168.1.101:41347 209.85.227.102:80 ESTABLISHED
  • 17. netstat - Show more network information. asr@aqua:~$ sudo netstat -antup Active Internet connections (servers and established) ... tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2243/portmap tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3335/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3517/cupsd tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 9217/4 tcp 0 0 192.168.1.101:50874 213.13.144.37:1723 ESTABLISHED 7355/pptp tcp 0 144 192.168.1.101:22 192.168.1.103:51455 ESTABLISHED 9208/sshdtcp 0 0 192.168.1.101:58729 212.55.154.196:22 ESTABLISHED 7617/ssh ...tcp6 0 0 :::22 :::* LISTEN 3335/sshd udp 0 0 0.0.0.0:514 0.0.0.0:* 2506/syslogd udp 0 0 0.0.0.0:53528 0.0.0.0:* 2264/rpc.statd udp 0 0 0.0.0.0:68 0.0.0.0:* 3200/dhclient3 udp 0 0 0.0.0.0:111 0.0.0.0:* 2243/portmap ...tcp6 0 0 :::22 :::* LISTEN 3335/sshd udp 0 0 0.0.0.0:514 0.0.0.0:* 2506/syslogd udp 0 0 0.0.0.0:53528 0.0.0.0:* 2264/rpc.statd udp 0 0 0.0.0.0:68 0.0.0.0:* 3200/dhclient3 udp 0 0 0.0.0.0:111 0.0.0.0:* 2243/portmap
  • 18.
  • 19.
  • 20. Memorize this :) http://en.wikipedia.org/wiki/File:Tcp_state_diagram_fixed.svg
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 28. Thank you Armando Reis - PT/DTS