Environment: (freebsd 9.0)

192.168.0.100/24 ------lan ----- wan (ipv6 :2001:238:300::200/64)   --------Internet ------------wan (ipv6 : 2001:238:300::100/64) -----------------lan :192.168.4.100/24

 

1. ifconfig gif0 create

2. ifconfig gif0 inet6 tunnel  2001:238:300::200 2001:238:300::100 prefixlen 128

3. ifconfig gif0 up

4. route add -net 192.168.4.0/24 -interface gif0

 

test  : from local  use  ping -S 192.168.0.100 192.168.4.100   ,  should get reply packet from  remote  lan site 

 

 

 

 

arrow
arrow
    全站熱搜

    yves2005 發表在 痞客邦 留言(0) 人氣()