Not possible in WUI.
Found on old forum.
Not sure if this is what your looking for.
majlos
Posts: 4
Joined: September 16th, 2015, 8:43 am
Re: multiple vlans
Post by majlos » September 16th, 2015, 11:35 am
Myself reply! May be this is the solution:
- edit script /etc/init.d/network-vlans
-> add the next color for interface - for example BROWN
for interface in green0 red0 blue0 orange0 brown0; do
case “${interface}” in
green*)
PARENT_DEV=${GREEN_PARENT_DEV}
VLAN_ID=${GREEN_VLAN_ID}
MAC_ADDRESS=${GREEN_MAC_ADDRESS}
;;
red*)
PARENT_DEV=${RED_PARENT_DEV}
VLAN_ID=${RED_VLAN_ID}
MAC_ADDRESS=${RED_MAC_ADDRESS}
;;
blue*)
PARENT_DEV=${BLUE_PARENT_DEV}
VLAN_ID=${BLUE_VLAN_ID}
MAC_ADDRESS=${BLUE_MAC_ADDRESS}
;;
orange*)
PARENT_DEV=${ORANGE_PARENT_DEV}
VLAN_ID=${ORANGE_VLAN_ID}
MAC_ADDRESS=${ORANGE_MAC_ADDRESS}
;;
brown*)
PARENT_DEV=${BROWN_PARENT_DEV}
VLAN_ID=${BROWN_VLAN_ID}
MAC_ADDRESS=${BROWN_MAC_ADDRESS}
;;
2.edit /var/ipfire/ethernet/vlans
ORANGE_PARENT_DEV=green0
ORANGE_VLAN_ID=100
ORANGE_MAC_ADDRESS=00:22:81:B2:2C:10
BROWN_PARENT_DEV=green0
BROWN_VLAN_ID=200
BROWN_MAC_ADDRESS=00:22:81:B2:2C:20
3.edit /var/ipfire/ethernet/setting
ORANGE_DEV=orange0
ORANGE_ADDRESS=10.0.1.1
ORANGE_NETMASK=255.255.255.0
ORANGE_NETADDRESS=10.0.1.0
ORANGE_BROADCAST=10.0.1.255
ORANGE_DESCRIPTION=’“pci: Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express”’
ORANGE_DRIVER=tg3
BROWN_DEV=brown0
BROWN_ADDRESS=10.0.2.1
BROWN_NETMASK=255.255.255.0
BROWN_NETADDRESS=10.0.2.0
BROWN_BROADCAST=10.0.2.255
BROWN_DESCRIPTION=’“pci: Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express”’
BROWN_DRIVER=tg3
-
edit /etc/init.d/networking/any
elif [ “$(basename $0)” == “brown” ]; then
DEVICE="${BROWN_DEV}"
ADDRESS="${BROWN_ADDRESS}"
BROADCAST="${BROWN_BROADCAST}"
NETADDRESS="${BROWN_NETADDRESS}"
NETMASK="${BROWN_NETMASK}"
DEVICE="${BROWN_DEV}" -
/etc/init.d/network-vlans start
-> it make now 2 vlans interface
6.make a symlinc in /etc/init.d/networking -> ln -s any brown
7./etc/init.d/networking/brown start
/etc/init.d/networking/orange start
thats all - if you want more vlans, make this steps again with other color 
JUST ONE STEP - add vlans start
make a file ipfire-vlan-start in /etc/init.d with this lines
/etc/init.d/network-vlans start
/etc/init.d/networking/orange start
/etc/init.d/networking/brown start
set privileges to this files for running
chmod 700 ipfire-vlan-start
make a threee symbolic link like this:
ln -s /etc/init.d/ipfire-vlan-start /etc/rc.d/rc0.d/S95ipfire-vlan-start
ln -s /etc/init.d/ipfire-vlan-start /etc/rc.d/rc3.d/S95ipfire-vlan-start
ln -s /etc/init.d/ipfire-vlan-start /etc/rc.d/rc6.d/S95ipfire-vlan-start
thats all, now you have vlans active after reboot the server
Last edited by majlos on September 16th, 2015, 2:01 pm, edited 1 time in total.
Top
Link to old post
Hope that helps