Advertisement
Igneus

Untitled

Feb 15th, 2016
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. $ route
  2. Kernel IP routing table
  3. Destination Gateway Genmask Flags Metric Ref Use Iface
  4. 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
  5.  
  6. $ ip route
  7. 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5
  8.  
  9. $ ifconfig
  10. eht0 Link encap:Ethernet HWaddr 00:1d:60:31:6d:ae
  11. UP BROADCAST MULTICASE MTU:1500 Metric:1
  12. RX packets:0 error:0 dropped:0 overruns:0 frame:0
  13. TX packets:0 error:0 dropped:0 overruns:0 frame:0
  14. collisions:0 txqueuelen:1000
  15. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  16.  
  17. lo Link encap:Local Loopback
  18. inet addr:127.0.0.1 Mask:255.0.0.0
  19. inet6 addr: ::1/128 Scope:Host
  20. UP LOOPBACK RUNNING MTU:65536 Metric:1
  21. RX packets:42 error:0 dropped:0 overruns:0 frame:0
  22. TX packets:42 error:0 dropped:0 overruns:0 frame:0
  23. collisions:0 txqueuelen:0
  24. RX bytes:3112 (3.1 KB) TX bytes:3112 (3.1 KB)
  25.  
  26. $ cat /etc/network/interfaces
  27. # loopback
  28. auto lo
  29. iface lo inet loopback
  30.  
  31. # primary dhcp
  32. #auto eth0
  33. #iface eth0 inet dhcp
  34.  
  35. # primary static
  36. auto eth0
  37. iface eth0 inet static
  38. address 192.168.1.5
  39. netmask 255.255.255.0
  40. broadcast 192.168.1.255
  41. gateway 192.168.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement