[c-nsp] GRE tunnel to FreeBSD

Tuc at T-B-O-H.NET ml at t-b-o-h.net
Tue Oct 24 10:33:06 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).
> 
	I should REALLY be more awake when I write things... Ok...
I now have :

FREEBSD:
ifconfig wi0 192.168.3.21 netmask 255.255.255.0 up
ifconfig gre0 unplumb
ifconfig gre0 create
ifconfig gre0 192.168.4.1 192.168.4.2 netmask 0xffffff00 link0 up
ifconfig gre0 tunnel 192.168.3.21 192.168.3.149


Cisco:

interface Tunnel0
 ip address 192.168.4.2 255.255.255.0
 tunnel source Ethernet0
 tunnel destination 192.168.3.21
!
interface Ethernet0
 ip address 192.168.3.149 255.255.255.0


	But still can't ping 192.168.4.2 .

			Thanks, Tuc


More information about the cisco-nsp mailing list