Red Hat Bugzilla – Bug 67228
Patched initscripts to support 802.1Q VLAN interfaces
Last modified: 2014-03-16 22:28:17 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126
Description of problem:
I'm not posting a bug, it is more likely a request for some enhancements.
I met lots of people needing VLAN implementation on linux, so I wrote 2 scripts
(if(up|down)-vlans) and added 1 line in ifup-port and 3 lines in ifdown-post.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual Results: The scripts work fine. I didn't find any bugs 'till now.
1. VLAN implementation:
For this scripts to run properly and to do what they're supposed to do you have
to download vlan configuration tools from
http://www.candelatech.com/~greear/vlan/vlan.1.6.tar.gz - which is the last
version AFAIK. Maybe this tool will be included in a package (net-tools) or will
be a standalone package.
2. Design: I see VLAN interfaces as some kind of aliases for the parent
interfaces. That I was thinking about when I wrote the scripts. Maybe you'll
consider it as different interfaces, I don't know, it is initscripts package
3. What the scripts do? They search for configuration vlan interfaces
configuration files coresponding to non-alias interfaces (e.g. eth3), they
perform some checks and if everything is ok the interface is configured and gets
an ip address, then the alias interfaces (if any) are configured.
BOOTPROTO is not checked, the ip address is assigned only static for now, Ben
Greear designed write some patches for dhcp server afaik.When the service
network stops the VLAN interfaces are simply removed.
VLAN interfaces can also act as default gateway interfaces, all you have to do
is add GATEWAYDEV=eth3.7, or GATEWAY=ip_address_directly_connected_to_vlan_iface
of both in /etc/sysconfig/network, or add lines in /etc/sysconfig/static-routes
in a proper way (e.g. eth0.3 net 10.100.100.0 netmask 255.255.255.248 gw
Something similar is in current rawhide initscripts (7.06-ish)