ifconfig(8) does not display tunnel endpoints for gre(4)

Juan Rodriguez Hervella jrh at it.uc3m.es
Thu Sep 4 01:54:17 PDT 2003


On Thursday 04 September 2003 01:35, Bruce M Simpson wrote:
> Hi all,
>
> Could someone review my PR and let me know if they have also observed
> the problem? I will produce a fix shortly.
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=56341
>
> Thanks
> BMS

Hello, 

I've read your PR, and I've tried to creat a gre tunnel both in
FreeBSD-4.8 and FreeBSD-5.1, as follows:

1. ifconfig gre0 create
2. ifconfig gre0 192.168.1.1 192.168.2.1 link1
3. ifconfig gre0 tunnel 163.117.140.166 163.117.140.181

This is what I see with "ifconfig -a" on FreeBSD-4.8

[snipped]
gre0: flags=b011<UP,POINTOPOINT,LINK0,LINK1,MULTICAST> mtu 1476
        inet6 fe80::201:3ff:fed6:e03a%gre0 prefixlen 64 scopeid 0xb
        inet 163.117.140.166 --> 163.117.140.181 netmask 0xffff0000

And this is with FreeBSD-5.1

[snipped]
gre0: flags=b051<UP,POINTOPOINT,RUNNING,LINK0,LINK1,MULTICAST> mtu 1476
        inet 192.168.1.1 --> 192.168.2.1 netmask 0xffffff00
        inet6 fe80::2c0:26ff:fea3:5df6%gre0 prefixlen 64 scopeid 0x5


Besides, I think that every interface already has a link-local IPv6 address,
so I don't quite catch what you're saying in the PR, which I quoted here:

"When the system is compiled with INET6 support, then any instance of
a tunnel clone interface must have an AF_INET6 address configured on
it for the tunnel source/destination to be displayed."

Thank you!

-- 
JFRH


More information about the freebsd-net mailing list