Advertisement
Guest User

Untitled

a guest
May 30th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. # Loopback
  2. auto lo
  3. iface lo inet loopback
  4.  
  5. # Primary network interface
  6. auto eth0
  7. iface eth0 inet static
  8. address 10.1.1.100
  9. netmask 255.255.255.0
  10. network 10.1.1.0
  11. broadcast 10.1.1.255
  12. gateway 10.1.1.1
  13. dns-nameserver 8.8.8.8
  14.  
  15. $ connmanctl services
  16. *AR Wired ethernet_544a16cac68f_cable
  17. $ connmanctl config ethernet_544a16cac68f_cable --ipv4 manual 10.1.1.100 255.255.255.0 10.1.1.1 --nameservers 8.8.8.8
  18.  
  19. # From host to gateway
  20. $ ping 10.1.1.1
  21. From 10.1.1.100 icmp_seq=1 Destination Host Unreachable
  22.  
  23. 127.0.0.1 localhost
  24. 127.0.1.1 device
  25.  
  26. nameserver 127.0.0.1
  27. nameserver ::1
  28.  
  29. $ route
  30. Destination Gateway Genmask Flags Metric Ref Use Iface
  31. default 10.2.1.6 0.0.0.0 UG 0 0 0 eth0
  32. 8.8.8.8 10.2.1.6 255.255.255.255 UGH 0 0 0 eth0
  33. 10.2.1.0 * 255.255.255.0 U 0 0 0 eth0
  34. 10.2.1.6 * 255.255.255.255 UH 0 0 0 eth0
  35.  
  36. $ arp -n
  37. Address HWtype HWaddress Flags Mask Iface
  38. 10.2.1.6 (incomplete) eth0
  39.  
  40. net.ipv6.conf.all.disable_ipv6 = 1
  41. net.ipv6.conf.default.disable_ipv6 = 1
  42. net.ipv6.conf.lo.disable_ipv6 = 1
  43.  
  44. $ sysctl -p
  45. $ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
  46. 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement