LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-23-2014, 02:06 PM   #1
pcCoder
LQ Newbie
 
Registered: Apr 2014
Posts: 24

Rep: Reputation: Disabled
Advanced network configuration systems.


I've got several rather complex network setups that I'd like to put in a configuration file. Currently, I'm using Debian's ifupdown configuration, but that seems to have some minor problems especially when using ipv4 and ipv6 (complaints that an interface is already up or doesn't exist when going down). I'm thinking about just using a makefile-based setup for my needs but would be happy to know if there are any better management systems that also give a good bit of manual control when needed.

My planned setup looks like this

Code:
 VM  VM (vbox)
  \ /
   |
eth0vde   eth0    veth -- VM (lxc)
   \       |      /
    \      |     /--veth -- VM (lxc)
     \     |    /
      \    |   /
       \   |  /
        eth0br
           |
          /|\
         / | \
        /  |  \
   eth0.2  |   \--eth0.99
         eth0.50
eth0vde is a VDE2 switch TAP. eth0br bridges this as well as eth0, and also allows linux containers to join the bridge (lxc.network.type=veth, lxc.network.link=eth0br)

I have similar bridges to allow for host-only (and inter-host between several different computers) connections, as well as a NAT based bridge. The bridges also use new features such as VLAN filtering available in the 3.15 kernel.

I've thought about just using a makefile-based approach such as:

Code:
.PHONY: start-eth0cluster
start-eth0cluster: stop-eth0cluster
	ip link add dev eth0br type bridge
	vde_switch -s /var/run/vde2_eth0vde.ctl -t eth0vde
	ip link set dev eth0 master eth0br
	ip link set dev eth0vde master eth0br
	ip link set dev eth0br up
	ip link set dev eth0 up
	ip link set dev eth0vde up

.PHONY: stop-eth0cluster
stop-eth0cluster:
	ip link set dev eth0br down
	ip link set dev eth0 down
	ip link set dev eth0vde down
	ip link set dev eth0 nomaster
	ip link set dev eth0vde nomaster
	ip link delete dev eth0br
	kill `cat /var/run/vde2_eth0tap.pid`
While this gives me absolute control, I'm wondering if other management solutions that give just as much control exist. (ifupdown is nice but doens't have any way of specifying that one interface depends on another it seems)
 
Old 11-23-2014, 03:17 PM   #2
pcCoder
LQ Newbie
 
Registered: Apr 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
Another issue I'm wondering about is how to do a setup when two interfaces depend on each other. In the situation above, eth0 and eth0br depend on each other, and eth0vde and eth0br depend on each other.

Eth0 depends on eth0br being up and being master of eth0 in order to add vlans via 'bridge vlan add' Similar case is with eth0vde. If I use /etc/network/interfaces and "bridge_ports eth0 eth0vde" and bring the bridge up first, eth0vde doesn't exist yet. But if I bring eth0vde up first, then the bridge doesn't exist for eth0vde post-up rules to add vlans: "post-up bridge vlan add ..."
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] ACPI (Advanced Configuration And Power Configuration) not present on 2.6.38.8? Aquarius_Girl Linux - Newbie 8 05-30-2012 07:52 AM
Advanced Bind Configuration fantasygoat Linux - Networking 2 03-06-2012 06:46 PM
Advanced Squid Configuration Frank Ng'andwe Linux - Networking 4 08-05-2009 08:03 AM
setting the systems hosts ip address for the DTE systems in neural network samalaraj Linux - Newbie 1 09-24-2008 12:40 PM
proFTPD advanced configuration Satriani Linux - Software 3 04-25-2008 04:58 PM

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

All times are GMT -5. The time now is 03:48 AM.

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