[c-nsp] GRE tunnel to FreeBSD

Alexey Luckyanchikov alexl at alkar.net
Tue Oct 24 08:23:10 EDT 2006


On Tue, 24 Oct 2006, Tuc at T-B-O-H.NET wrote:

TaTBOHN> 	So I did :
TaTBOHN> 
TaTBOHN> ifconfig gre0 create
TaTBOHN> ifconfig gre0 192.168.3.21 192.168.3.149 netmask 0xffffffff link0 up
TaTBOHN> ifconfig gre0 tunnel 192.168.3.21 192.168.3.149
TaTBOHN> 
TaTBOHN> 	Should the last one be the 2 IPs I want to have the tunnel
TaTBOHN> IPs be, like :
TaTBOHN> 
TaTBOHN> ifconfig gre0 10.0.1.1 10.0.1.2
TaTBOHN> 
TaTBOHN> 	???

With "ifconfig gre0 tunnel ..." you configure outer IPs (physical source
and destination for tunnel), "ifconfig gre0 scr-ip dst-ip" set inner IPs
(IPs inside tunnel).

-- 
Sincerely,
Alexey Luckyanchikov


More information about the cisco-nsp mailing list