Re: Iproute/Tunneling Problem

kuznet@ms2.inr.ac.ru
Sun, 21 Feb 1999 21:54:31 +0300 (MSK)


Hello!

> [root@zerg]:~# ip tunnel show
> tunl0: ip/ip remote any local any ttl inherit nopmtudisc
> gre0: gre/ip remote any local any ttl inherit nopmtudisc
> tunl1: ip/ip remote 212.93.158.1 local 212.93.129.104 ttl inherit

Now you should ifconfig device tunl1 exactly as you make it
with ethernet/ppp etc. tunl1 exists now (exactly as ethernet card
plugged in, but not ifconfig'ed), but it has no IP address attached to it.

F.e. select some address range to be routed via tunnel (f.e. 10.0.0.1/24)
and make something sort of:

ifconfig tunl1 10.0.0.1 netmask 255.255.255.0

Details depend on actual addresses, which you need to route via
tunnel.

> tunl1: ip/ip remote 212.93.129.104 local 212.93.158.1 ttl inherit
> [root@ns]:~# ip route add 212.93.129.104 dev tunl1

BTW it is non-sense: 212.93.129.104 and 212.93.158.1 are supposed
to be routed via normal (not-tunneled) IP.

Alexey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/