Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ route
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
- $ ip route
- 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5
- $ ifconfig
- eht0 Link encap:Ethernet HWaddr 00:1d:60:31:6d:ae
- UP BROADCAST MULTICASE MTU:1500 Metric:1
- RX packets:0 error:0 dropped:0 overruns:0 frame:0
- TX packets:0 error:0 dropped:0 overruns:0 frame:0
- collisions:0 txqueuelen:1000
- RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- 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:65536 Metric:1
- RX packets:42 error:0 dropped:0 overruns:0 frame:0
- TX packets:42 error:0 dropped:0 overruns:0 frame:0
- collisions:0 txqueuelen:0
- RX bytes:3112 (3.1 KB) TX bytes:3112 (3.1 KB)
- $ cat /etc/network/interfaces
- # loopback
- auto lo
- iface lo inet loopback
- # primary dhcp
- #auto eth0
- #iface eth0 inet dhcp
- # primary static
- auto eth0
- iface eth0 inet static
- address 192.168.1.5
- netmask 255.255.255.0
- broadcast 192.168.1.255
- gateway 192.168.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement