Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zebra not honoring sub interface state #13817

Closed
vijaykug opened this issue Jun 20, 2023 · 4 comments
Closed

Zebra not honoring sub interface state #13817

vijaykug opened this issue Jun 20, 2023 · 4 comments
Labels
triage Needs further investigation

Comments

@vijaykug
Copy link
Contributor

Issue:- when Sub interface state and main interface state is shut down , i did no shut of main interface only , but sub-interface state became up , running config shows interface is in shut state only
Looks like its not honoring the sub interface state .

1) ens161.4005 and ens161 both are in no shut state 

R11(config-if)# do show interface brief 
Interface       Status  VRF             Addresses
---------       ------  ---             ---------
ens160          up      default         10.173.213.141/21
ens161          up      default         
ens161.4005     up      default         21.1.1.1/24
ens161.4006     up      default         21.2.1.1/24
ens161.4007     up      default         21.3.1.1/24
ens161.4008     up      default         21.4.1.1/24
ens162          down    default         
ens192          up      default         
ens192.4001     up      default         11.1.1.1/24
                                        + 1101::1/64
ens192.4002     up      default         11.2.1.1/24
                                        + 1102::1/64
ens192.4003     up      default         11.3.1.1/24
                                        + 1103::1/64
ens192.4004     up      default         11.4.1.1/24
                                        + 1104::1/64
ens193          down    default         69.0.0.2/24
ens224          down    default         22.1.1.1/24
ens225          up      default         175.1.1.1/24
                                        + 1750::1/64
ens256          up      default         25.25.25.1/24
                                        + 2525::1/64
ens257          down    default         29.29.29.1/30
lo              up      default         101.101.101.101/32
                                        1111::1/64
ovs-system      down    default         
pim6reg         up      default         
pimreg          up      default         
s1              down    default         

2)  Shut main interface and sub interface 

R11(config)# interface ens161.4005
R11(config-if)# shutdown 
R11(config-if)# interface ens161
R11(config-if)# shutdown 
R11(config-if)# do show interface brief 
Interface       Status  VRF             Addresses
---------       ------  ---             ---------
ens160          up      default         10.173.213.141/21
ens161          down    default         
ens161.4005     down    default         21.1.1.1/24
ens161.4006     down    default         21.2.1.1/24
ens161.4007     down    default         21.3.1.1/24
ens161.4008     down    default         21.4.1.1/24
ens162          down    default         
ens192          up      default         
ens192.4001     up      default         11.1.1.1/24
                                        + 1101::1/64
ens192.4002     up      default         11.2.1.1/24
                                        + 1102::1/64
ens192.4003     up      default         11.3.1.1/24
                                        + 1103::1/64
ens192.4004     up      default         11.4.1.1/24
                                        + 1104::1/64
ens193          down    default         69.0.0.2/24
ens224          down    default         22.1.1.1/24
ens225          up      default         175.1.1.1/24
                                        + 1750::1/64
ens256          up      default         25.25.25.1/24
                                        + 2525::1/64
ens257          down    default         29.29.29.1/30
lo              up      default         101.101.101.101/32
                                        1111::1/64
ovs-system      down    default         
pim6reg         up      default         
pimreg          up      default         
s1              down    default         

3)  No shut only main interface  ( sub interface still in shut state) 


R11(config-if)# interface ens161
R11(config-if)# no shutdown 
R11(config-if)# do show interface brief 
Interface       Status  VRF             Addresses
---------       ------  ---             ---------
ens160          up      default         10.173.213.141/21
ens161          up      default         
ens161.4005     up      default         21.1.1.1/24.     <<<<<< this sub interface which is down , came up after main interface no shut 
ens161.4006     up      default         21.2.1.1/24
ens161.4007     up      default         21.3.1.1/24
ens161.4008     up      default         21.4.1.1/24
ens162          down    default         
ens192          up      default         
ens192.4001     up      default         11.1.1.1/24
                                        + 1101::1/64
ens192.4002     up      default         11.2.1.1/24
                                        + 1102::1/64
ens192.4003     up      default         11.3.1.1/24
                                        + 1103::1/64
ens192.4004     up      default         11.4.1.1/24
                                        + 1104::1/64
ens193          down    default         69.0.0.2/24
ens224          down    default         22.1.1.1/24
ens225          up      default         175.1.1.1/24
                                        + 1750::1/64
ens256          up      default         25.25.25.1/24
                                        + 2525::1/64
ens257          down    default         29.29.29.1/30
lo              up      default         101.101.101.101/32
                                        1111::1/64
ovs-system      down    default         
pim6reg         up      default         
pimreg          up      default         
s1              down    default 



R11(config)# do show  running-config 
Building configuration...

Current configuration:
!
frr version 9.0-dev
frr defaults traditional
hostname R11
log file /var/log/frr/jun9_log
log syslog
ip pim rp 102.102.102.102 226.1.1.0/24
ipv6 pim rp 1222::1 ff00::/8
service integrated-vtysh-config

interface ens161.4005
 ip address 21.1.1.1/24
 ip pim
 ipv6 address 2101::1/64
 ipv6 pim
 shutdown

FRRouting 9.0-dev (R11) on Linux(6.1.2-060102-generic)

@vijaykug vijaykug added the triage Needs further investigation label Jun 20, 2023
@riw777
Copy link
Member

riw777 commented Jun 20, 2023

We need to know if the sub is coming up because Zebra is coming up or if FR/R is missing the shutdown when bringing the interface up ... use iplinks to see the operating system output to see if zebra and the kernel are the same

@vijaykug
Copy link
Contributor Author

We need to know if the sub is coming up because Zebra is coming up or if FR/R is missing the shutdown when bringing the interface up ... use iplinks to see the operating system output to see if zebra and the kernel are the same

Hi @riw777

Observing same behaviour with ip link also , ( ip link set ens161 up) bringing up sub-interface also

R11# configure terminal 
R11(config)# interface ens161.4005
R11(config-if)# shutdown 
R11(config-if)# exit 
R11(config)# do write 
Note: this version of vtysh never writes vtysh.conf
Building Configuration...
Integrated configuration saved to /etc/frr/frr.conf
[OK]
R11(config)# do show  interface ens161.4005
Interface ens161.4005 is down
  Link ups:       6    last: 2023/06/20 06:31:54.30
  Link downs:    11    last: 2023/06/20 22:45:51.42
  vrf: default
  index 19 metric 0 mtu 1500 speed 10000 
  flags: <BROADCAST,MULTICAST>
  Type: Ethernet
  HWaddr: 00:50:56:b7:df:1b
  inet 21.1.1.1/24
  Interface Type Vlan
  Interface Slave Type None
  VLAN Id 4005
  protodown: off 
  Parent interface: ens161
R11(config)# exit 
R11# exit 
root@R11:~# ip link set ens161 down
root@R11:~# ip link set ens161 up
root@R11:~# vtysh 

Hello, this is FRRouting (version 9.0-dev).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

R11# do show  interface ens161.4005
Interface ens161.4005 is up, line protocol is up
  Link ups:       7    last: 2023/06/20 22:46:27.33
  Link downs:    12    last: 2023/06/20 22:46:27.33
  vrf: default
  index 19 metric 0 mtu 1500 speed 10000 
  flags: <UP,BROADCAST,RUNNING,MULTICAST>
  v4 Multicast forwarding is on
  v6 Multicast forwarding is on
  Type: Ethernet
  HWaddr: 00:50:56:b7:df:1b
  inet 21.1.1.1/24
  inet6 fe80::250:56ff:feb7:df1b/64
  Interface Type Vlan
  Interface Slave Type None
  VLAN Id 4005
  protodown: off 
  Parent interface: ens161

Copy link

This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose label in order to avoid having this issue closed.

@frrbot
Copy link

frrbot bot commented Dec 19, 2023

This issue will be automatically closed in the specified period unless there is further activity.

@frrbot frrbot bot closed this as completed Dec 26, 2023
@frrbot frrbot bot closed this as completed Dec 26, 2023
@frrbot frrbot bot removed autoclose labels Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs further investigation
Projects
None yet
Development

No branches or pull requests

2 participants