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 05-20-2020, 05:48 PM   #1
funkytwig
Member
 
Registered: Jun 2016
Posts: 46

Rep: Reputation: Disabled
Bridge strangness, have same IP twice on bridge and one on main nic.


Hi. I've been setting up a bridge for KNM VM. I first set it up on a test machine and had the IP on the bridge only. When I put it into production I have the IP twice on the bridge (/22 and /32) and it is also on the main NIC. This makes no sense to me. Been scratching my head for a week. Also been having problems with the network connection from the VM so want to see if this is why.

So ip addr

2: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000
link/ether 2c:4d:54:43:92:df brd ff:ff:ff:ff:ff:ff
inet xxx.171.204.107/22 brd xxx.171.207.255 scope global enp7s0
valid_lft forever preferred_lft forever
inet6 fe80::2e4d:54ff:fe43:92df/64 scope link
valid_lft forever preferred_lft forever

4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 2c:4d:54:43:92:df brd ff:ff:ff:ff:ff:ff
inet xxx.171.204.107/32 brd xxx.171.204.107 scope global br0
valid_lft forever preferred_lft forever
inet xxx.171.204.107/22 brd xxx.171.207.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::2e4d:54ff:fe43:92df/64 scope link
valid_lft forever preferred_lft forever

(will pst whole 'ip addr' below)

Main NIC config
DEVICE="enp7s0"
NM_CONTROLLED="no"
ONBOOT=yes
#HWADDR=2c:4d:54:43:92:df
TYPE=Ethernet
BOOTPROTO=none
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System enp7s0"
BRIDGE=br0


Bridge config

DEVICE="br0"
NM_CONTROLLED="no"
ONBOOT=yes
#HWADDR=2c:4d:54:43:92:df
TYPE=Bridge
BOOTPROTO=static
IPADDR=xxx.171.204.107
NETMASK=255.255.255.255
DNS1=212.227.123.16
DNS2=212.227.123.17
DNS3=8.8.8.8
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System br0"


Show what is going on?

Ben

Here is full ip addr

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: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000
link/ether 2c:4d:54:43:92:df brd ff:ff:ff:ff:ff:ff
inet xxx.171.204.107/22 brd 213.171.207.255 scope global enp7s0
valid_lft forever preferred_lft forever
inet6 fe80::2e4d:54ff:fe43:92df/64 scope link
valid_lft forever preferred_lft forever
3: enp8s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 2c:4d:54:43:92:e0 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 2c:4d:54:43:92:df brd ff:ff:ff:ff:ff:ff
inet xxx.171.204.107/32 brd 213.171.204.107 scope global br0
valid_lft forever preferred_lft forever
inet xxx.171.204.107/22 brd 213.171.207.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::2e4d:54ff:fe43:92df/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:56:31:0e brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:56:31:0e brd ff:ff:ff:ff:ff:ff
12: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNOWN group default qlen 1000
link/ether fe:54:00:3e:e4:07 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc54:ff:fe3e:e407/64 scope link
valid_lft forever preferred_lft forever

Last edited by funkytwig; 05-20-2020 at 05:51 PM.
 
Old 05-20-2020, 06:06 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You mean KVM, not KNM, correct?

The netmask in the bridge config file is 255.255.255.255, which is at least unusual and probably incorrect.

The question is: How did you create the bridge and how did you configure the VM?
Also, what happens after rebooting?
 
  


Reply

Tags
bridge, kvm, virtualization



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] Is there a cli method of running a command twice without having to type it twice? powderburns Linux - Software 4 03-24-2017 09:55 AM
if there are 2 NIC on the same machine, can a tcp client on one NIC connect to a tcp esolve Linux - Networking 3 05-20-2013 02:16 PM
(2) Main Menu's? Isn't it, "there can be only one?" for the term "Main"? t3gah LQ Suggestions & Feedback 1 04-09-2005 09:30 AM
Network strangness in Yellow Dog 4.0 thecanadian Linux - Networking 0 01-25-2005 03:38 PM
same confugiration and same network two mandrake9.1 one see the network one not. why? durukan Linux - Networking 2 07-25-2003 11:25 AM

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

All times are GMT -5. The time now is 10:15 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