Page MenuHomePhabricator

IP addresses configured on vif-s interfaces are not added to the system
Open, Requires assessmentPublicBUG

Description

Adding an IP address on a service VLAN (vif-s) is not propagated into the OS Kernel.
set interfaces ethernet eth1 vif-s 100 address '192.168.1.1/24'

ethernet eth1 {
    duplex auto
    hw-id 00:50:56:9d:d5:b6
    smp-affinity auto
    speed auto
    vif-s 100 {
        address 192.168.1.1/24
    }
}
vyos@vyos:~$ ip a | grep -A 5 "eth1.100"
17: eth1.100@eth1: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:50:56:9d:d5:b6 brd ff:ff:ff:ff:ff:ff

Adding the address manually works so it seems not to be a Linux limitation.

cpo@LR1.wueIII:~$ sudo ip addr add "192.168.1.1/24" dev eth1.100
cpo@LR1.wueIII:~$ ip a | grep -A 5 "eth1.100"
17: eth1.100@eth1: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:50:56:9d:d5:b6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 scope global eth1.100
       valid_lft forever preferred_lft forever

Details

Difficulty level
Unknown (require assessment)
Version
1.2.2
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

c-po assigned this task to dmbaturin.Sep 3 2019, 2:58 PM
c-po created this task.
c-po moved this task from Need Triage to VyOS 1.2.4 on the VyOS 1.2 Crux board.
c-po edited projects, added VyOS 1.2 Crux (VyOS 1.2.4); removed VyOS 1.2 Crux.
Dmitry added a subscriber: Dmitry.Sep 3 2019, 6:37 PM
kroy added a subscriber: kroy.EditedSep 3 2019, 7:19 PM

I took a look, but was unable to figure out how to finagle VyOS to fix it.

But basically, it's happening because the interface doesn't exist

set interfaces ethernet eth0 vif-s 100 description Blah
commit
set interfaces ethernet eth0 vif-s 100 address 192.168.1.1/24

That will set the address.

Doing the obvious, and adding a create: block to vyatta-cfg/templates/interfaces/pseudo-ethernet/node.tag/vif-s/node.def didn't seem to fix it.

pasik added a subscriber: pasik.Sep 4 2019, 8:07 PM