...
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 | ||||
---|---|---|---|---|
| ||||
* {toc} h1. Commands h2. Listing the Gateway and routing information All Distributions: {code}route \-nee{code} with the iproute2 package installed: {code}ip route show{code} h1. Second Header {rate} |
Static IP
Code Block | ||||
---|---|---|---|---|
| ||||
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 |