Hello,
First i tried adding an interface using vconfig
ifconfig doesn show the new virtual nic, but ip link show does... Does this mean i have 2 interfaces running???
Results posted below...
[root@localhost ~]# vconfig add eth0 1
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 == 1 to IF -:eth0:-
WARNING: VLAN 1 does not work with many switches,
consider another number if you have problems.
[root@localhost ~]# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:13:d3:06:8c:e4 brd ff:ff:ff:ff:ff:ff
3: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
4: eth0.1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:13:d3:06:8c:e4 brd ff:ff:ff:ff:ff:ff
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:13
3:06:8C:E4
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::213:d3ff:fe06:8ce4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4443 errors:0 dropped:0 overruns:0 frame:0
TX packets:4027 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4836786 (4.6 MiB) TX bytes:679436 (663.5 KiB)
Interrupt:209 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1469 errors:0 dropped:0 overruns:0 frame:0
TX packets:1469 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2189856 (2.0 MiB) TX bytes:2189856 (2.0 MiB)
[root@localhost ~]# ip link set dev eth0.1 address 00:07:E9:04
2:9A
[root@localhost ~]# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:13:d3:06:8c:e4 brd ff:ff:ff:ff:ff:ff
3: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
4: eth0.1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop
link/ether 00:07:e9:04:d2:9a brd ff:ff:ff:ff:ff:ff
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:13
3:06:8C:E4
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::213:d3ff:fe06:8ce4/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:5181 errors:0 dropped:0 overruns:0 frame:0
TX packets:4770 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5453718 (5.2 MiB) TX bytes:837615 (817.9 KiB)
Interrupt:209 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1469 errors:0 dropped:0 overruns:0 frame:0
TX packets:1469 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2189856 (2.0 MiB) TX bytes:2189856 (2.0 MiB)
Thanks