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-09-2016, 07:11 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Thumbs down Bridge and Static IP.


Hello.
I use fedora 23 server edition and I want to make a bridge that use static IP not DHCP.
my current config is :
Code:
enp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.30.9.20  netmask 255.255.255.0  broadcast 172.30.9.255
        inet6 fe80::52e5:49ff:fe40:c48f  prefixlen 64  scopeid 0x20<link>
        ether 50:e5:49:40:c4:8f  txqueuelen 1000  (Ethernet)
        RX packets 989  bytes 84310 (82.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 77  bytes 9575 (9.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
and according to the Xen Project documents (http://wiki.xen.org/wiki/Fedora_Host_Installation) I did :

# touch /etc/sysconfig/network-scripts/ifcfg-br0

Code:
DEVICE=br0
TYPE=Bridge
BOOTPROTO=none
ONBOOT=yes
IPADDR=172.30.9.20
PREFIX=24
GATEWAY=172.30.9.254
DNS1=172.30.9.1
DELAY=0
NM_CONTROLLED=no
and
# nano /etc/sysconfig/network-scripts/ifcfg-enp7s0
Code:
HWADDR=50:E5:49:40:C4:8F
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp7s0
UUID=5e520f04-b32c-4116-b61f-89c190868edc
ONBOOT=yes
IPADDR=172.30.9.20
PREFIX=24
GATEWAY=172.30.9.254
DNS1=172.30.9.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
NM_CONTROLLED=no
BRIDGE=br0
and
# systemctl restart network.service

But my bridge not working!!!!
Must I comment all "IPADDR", "PREFIX", "GATEWAY" and "DNS1" in "ifcfg-enp7s0" ?
Please help me.

Tnx.
 
Old 05-10-2016, 06:17 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,146

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Your interface must not duplicate the IP setup. That should only be in the bridge config.


https://docs.fedoraproject.org/en-US...rk-bridge.html
 
Old 05-10-2016, 06:18 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Problem Solved via comment parts.
 
Old 05-10-2016, 06:42 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,817

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
AFAIU, only br0 should be assigned with an IP address when configured like this.
 
  


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
LXer: Intel SNA Performance Of Sandy Bridge, Ivy Bridge, Haswell LXer Syndicated Linux News 0 10-13-2013 11:02 PM
[SOLVED] setting up a bridge with 3 static IPs and two VM jbcolmena Linux - Networking 2 08-14-2010 04:16 AM
Can I bridge my DSL 3347 with single static IP on PPPoE bfoddy Linux - Networking 2 12-12-2008 09:50 PM
Static DHCP on wireless IP bridge mitchikoy Linux - Software 1 02-05-2008 07:48 PM
2WIRE need bridge for static lan ips gjmwalsh Linux - Networking 5 06-27-2007 07:48 AM

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

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