Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Loopback
- auto lo
- iface lo inet loopback
- # Primary network interface
- auto eth0
- iface eth0 inet static
- address 10.1.1.100
- netmask 255.255.255.0
- network 10.1.1.0
- broadcast 10.1.1.255
- gateway 10.1.1.1
- dns-nameserver 8.8.8.8
- $ connmanctl services
- *AR Wired ethernet_544a16cac68f_cable
- $ connmanctl config ethernet_544a16cac68f_cable --ipv4 manual 10.1.1.100 255.255.255.0 10.1.1.1 --nameservers 8.8.8.8
- # From host to gateway
- $ ping 10.1.1.1
- From 10.1.1.100 icmp_seq=1 Destination Host Unreachable
- 127.0.0.1 localhost
- 127.0.1.1 device
- nameserver 127.0.0.1
- nameserver ::1
- $ route
- Destination Gateway Genmask Flags Metric Ref Use Iface
- default 10.2.1.6 0.0.0.0 UG 0 0 0 eth0
- 8.8.8.8 10.2.1.6 255.255.255.255 UGH 0 0 0 eth0
- 10.2.1.0 * 255.255.255.0 U 0 0 0 eth0
- 10.2.1.6 * 255.255.255.255 UH 0 0 0 eth0
- $ arp -n
- Address HWtype HWaddress Flags Mask Iface
- 10.2.1.6 (incomplete) eth0
- net.ipv6.conf.all.disable_ipv6 = 1
- net.ipv6.conf.default.disable_ipv6 = 1
- net.ipv6.conf.lo.disable_ipv6 = 1
- $ sysctl -p
- $ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
- 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement