LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2023, 09:52 AM   #1
duahimanshu816
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
Post Bridge Interface shows up even after unplugged the cable from physical interface


Hello Experts,

I have an issue, pending from long, I would really apricate if someone could help me out.

I have Debian 10, and KVM installed on it. hardware has two interface i.e. eth1 and eth0, I have created a bridge interfaces. Br1 mapped to eth1 and br0 mapped with eth0. everything is working fine, my virtual machine is able to send traffic through bridge interface, I am able to assign IP through DCHP or Static. no issue at all.

the only issue I have is: when i unplugged the cable from physical interface i.e. eth1 or eth0 and check the status "ip a" eth1 and eth0 shows down but bridge interface shows up and inside the VM ports shows up as well.

now, after unplugging the cable if i restart the network services manually through /etc/init.d/networking restart or services start networking.services then bridge interface status shows down. after that it continue works normal till I reboot the host. after rebooting the host the br0/1 status changes from down to up and eth1/0 status remain down.

note- virtual machine port station always remain up it never goes down is it a normal behavior?

when i checked the network service status it shows active/exited
below are some output of my interfaces script and ip a output.
~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br1 state UP group default qlen 1000
link/ether 94:b8:c5:9a:6b:6c brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000
link/ether 94:b8:c5:9a:6b:6d brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 94:b8:c5:9a:6b:6d brd ff:ff:ff:ff:ff:ff
inet 192.168.0.3/24 brd 192.168.0.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::96b8:c5ff:fe9a:6b6d/64 scope link
valid_lft forever preferred_lft forever
5: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 94:b8:c5:9a:6b:6c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 brd 192.168.1.255 scope global br1
valid_lft forever preferred_lft forever
inet6 fe80::96b8:c5ff:fe9a:6b6c/64 scope link
valid_lft forever preferred_lft forever
8: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br1 state UNKNOWN group default qlen 1000
link/ether fe:54:00:03:a5:17 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc54:ff:fe03:a517/64 scope link
valid_lft forever preferred_lft forever
9: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNOWN group default qlen 1000
link/ether fe:54:00:2a:3f:ba brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc54:ff:fe2a:3fba/64 scope link
valid_lft forever preferred_lft forever

cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# ("internal") network interface
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
address 192.168.0.4
netmask 255.255.255.0
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0

# (RJ45) network interface
auto eth1
iface eth1 inet manual

auto br1
iface br1 inet dhcp
#address 192.168.1.4
#netmask 255.255.255.0
#gateway 192.168.1.1
bridge_ports eth1
bridge_stp off
bridge_fd 0
bridge_maxwait 0

Last edited by duahimanshu816; 02-10-2023 at 09:55 AM.
 
Old 02-13-2023, 08:27 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Do you have the output that eth0 or eth1 is down but br0 or br1 is up?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ethernet connection shows "cable unplugged" jross54000 Linux Mint 3 03-16-2016 11:23 AM
Cable unplugged even if plugged Realtek RTL-8110SC/8169SC Con7e Linux - Hardware 1 10-22-2013 05:46 AM
is this legal: can still ping eth1 through eth0, even if eth1 cable is unplugged 5883 Linux - Networking 2 12-05-2012 03:55 AM
eth1 interface goes down if eth0 interfaces cable is unplugged? harshalshete Linux - Networking 3 10-21-2011 07:49 AM
Windows box shows "Network cable unplugged" when hooked up to my Linux router drkstr Linux - Networking 5 10-03-2006 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration