Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Table of Contents

Table of Contents

Commands

Listing the Gateway and routing information

All Distributions:

Code Block
route -nee

with the iproute2 package installed:

Code Block
themeEmacs
languagebash
ip route show

Static IP

Code Block
themeEmacs
languagebash
cp /etc/network/interfaces /etc/network/interfaces.bak
nano /etc/network/interfaces
auto lo
iface lo inet loopback

#My IP description
# IPv4 address
iface eth0 inet static
	address	192.168.0.100
	netmask	255.255.255.0	
	network	192.168.0.0	
	broadcast 192.168.0.255
	gateway	192.168.0.1
 
nano /etc/resolv.conf
nameserver	8.8.8.8 
nameserver	8.8.4.4