Setting a VLAN a dynamic IP address?
Can one have a DHCP server assign a VLAN on Linux an IP address dynamically instead of statically setting it?
Tried this:
1) vconfig add eth0 10
2) vconfig set_flag eth0.10 1 1
3) ifconfig eth0.10 hw ether <different_mac_address>
4) created a config file ifcfg-eth0.10 in /etc/sysconfig/network-scripts/
DEVICE=eth0.10
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=<different_mac_address>
Problem:
Error: WARNING: Could not open /proc/net/vlan/config. Maybe you need to load the 8021q module, or maybe you are not using PROCFS??
Added VLAN with VID == 10 to IF -:eth0:-
I used lsmod command and it shows loaded module 8021q in there and it seems PROCFS is there. I have a mount point to /proc but not sure if it means the same place
System:
Fedora Core 3 - Kernel 2.6.9-1.667
Has anyone tried to do this and successful gotten it to work?
Thanks!
|