Difference between revisions of "IPv6: Script HE short Ubuntu 18.04"

From OnnoWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
  ip link set enp3s0 down
 
  ip link set enp3s0 down
 
  ip link set enp3s0 up
 
  ip link set enp3s0 up
  ip route add 0.0.0.0/0 gw 192.168.0.223 dev enp3s0
+
ip addr add 192.168.0.10/24 dev enp3s0
 +
  ip route add 0.0.0.0/0 via 192.168.0.223 dev enp3s0
 
  ip link set he-ipv6 down
 
  ip link set he-ipv6 down
 
  ip tunnel del he-ipv6
 
  ip tunnel del he-ipv6
 +
ip tunnel add he-ipv6 mode sit remote 216.66.80.26 local 192.168.0.10 ttl 255
 +
ip link set he-ipv6 up
 +
ip addr add 2001:470:1f08:65d::2/64 dev he-ipv6
 
  ip addr del 2001:470:1f09:65d::1337/64 dev enp3s0
 
  ip addr del 2001:470:1f09:65d::1337/64 dev enp3s0
 +
ip addr add 2001:470:1f09:65d::1337/64 dev enp3s0
 +
ip route add ::/0 dev he-ipv6
 +
 +
atau
 +
 +
ifconfig sit0 up
 +
ifconfig sit0 inet6 tunnel ::216.66.80.26
 +
ifconfig sit1 up
 +
ifconfig sit1 inet6 add 2001:470:1f08:65d::2/64
 +
route -A inet6 add ::/0 dev sit1
 +
ip tunnel show
 +
 +
atau
 +
 +
modprobe ipv6
 
  ip tunnel add he-ipv6 mode sit remote 216.66.80.26 local 192.168.0.10 ttl 255
 
  ip tunnel add he-ipv6 mode sit remote 216.66.80.26 local 192.168.0.10 ttl 255
 
  ip link set he-ipv6 up
 
  ip link set he-ipv6 up
 
  ip addr add 2001:470:1f08:65d::2/64 dev he-ipv6
 
  ip addr add 2001:470:1f08:65d::2/64 dev he-ipv6
ip addr add 2001:470:1f09:65d::1337/64 dev enp3s0
 
 
  ip route add ::/0 dev he-ipv6
 
  ip route add ::/0 dev he-ipv6
 +
ip -f inet6 addr
 +
  
 
atau
 
atau

Latest revision as of 18:00, 30 January 2019

echo 0 >/proc/sys/net/ipv6/conf/enp3s0/accept_ra
modprobe ipv6
ip link set enp3s0 down
ip link set enp3s0 up
ip addr add 192.168.0.10/24 dev enp3s0
ip route add 0.0.0.0/0 via 192.168.0.223 dev enp3s0
ip link set he-ipv6 down
ip tunnel del he-ipv6
ip tunnel add he-ipv6 mode sit remote 216.66.80.26 local 192.168.0.10 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:1f08:65d::2/64 dev he-ipv6
ip addr del 2001:470:1f09:65d::1337/64 dev enp3s0
ip addr add 2001:470:1f09:65d::1337/64 dev enp3s0
ip route add ::/0 dev he-ipv6

atau

ifconfig sit0 up
ifconfig sit0 inet6 tunnel ::216.66.80.26
ifconfig sit1 up
ifconfig sit1 inet6 add 2001:470:1f08:65d::2/64
route -A inet6 add ::/0 dev sit1
ip tunnel show

atau

modprobe ipv6
ip tunnel add he-ipv6 mode sit remote 216.66.80.26 local 192.168.0.10 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:1f08:65d::2/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip -f inet6 addr


atau

echo 0 >/proc/sys/net/ipv6/conf/enp3s0/accept_ra
modprobe ipv6
ip link set he-ipv6 down
ip tunnel del he-ipv6
ip tunnel add he-ipv6 mode sit remote 216.66.80.26 local 192.168.0.10 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:1f08:65d::2/64 dev he-ipv6
ip route add ::/0 dev he-ipv6


Referensi


Pranala Menarik