On Fri, 27 Sep 2024, Andy Smith wrote:

Hi,

Here is a manual network setup I have created by use of the "ip"
command:

$ ip address show dev enX0
2: enX0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group 
default qlen 1000
   link/ether 00:16:5e:00:02:39 brd ff:ff:ff:ff:ff:ff
   inet 85.119.82.225/32 scope global enX0
      valid_lft forever preferred_lft forever
   inet6 2001:ba8:1f1:f1d7::2/64 scope global
      valid_lft forever preferred_lft forever
   inet6 fe80::216:5eff:fe00:239/64 scope link
      valid_lft forever preferred_lft forever
$ ip route show
default via inet6 fe80::1 dev enX0 src 85.119.82.225
$ ip -6 route show
2001:ba8:1f1:f1d7::/64 dev enX0 proto kernel metric 256 pref medium
fe80::/64 dev enX0 proto kernel metric 256 pref medium
default via fe80::1 dev enX0 metric 1024 pref medium

Note that it has a single global scope IPv4 address which is a /32, and
its IPv4 default route is via an IPv6 link-local address.

This works fine, however I had to configure it using the "ip" command:

Fascinating! I had absolutely no idea you could do that!

I suspect you can do it with pre-up commands and inet6 manual. I'd not
be surprised if everything else expects a gateway to be on the same
AF_FAMILY.

I've used this where I want an interface up but don't want it
configured but you can add whatever ip commands you need.

auto xenbr0_19
iface xenbr0_19 inet6 manual
        pre-up echo 0 >/proc/sys/net/ipv6/conf/default/accept_dad
        pre-up echo 0 >/proc/sys/net/ipv6/conf/default/accept_ra
        bridge_ports intlan0.19
        bridge_stp off       # disable Spanning Tree Protocol
        bridge_waitport 0    # no delay before a port becomes available
        bridge_fd 0          # no forwarding delay

Reply via email to