You are not logged in.
Hi
I have 1 network card and I want to assign 2 local IPs.
When I add a VLAN with "vconfig add eth0 0" I get an extra interface eth0.0 after restarting.
The problem is that, after assigning an IP and setting the default gateway, I loose my connection with the network.
When I put the interface down I get my connection back.
It is possible on the host to ping from one IP to the other but pinging from another host isn't possible while the interface eth0.0 is up.
I do see the ping request (ICMP packet) in wireshark.
And when there's an ARP packet with the IP of the VLAN / eth0 wireshark indicates "duplicate use of *ip* detected)
I'm certain that the IP is unique.
Last edited by johan84 (2010-02-25 19:03:57)
Offline
What you are doing should work, if this port was connected to a trunk.
Instead, just add an alias:
ifconfig eth0:0 11.22.33.44
Offline
What you are doing should work, if this port was connected to a trunk.
Instead, just add an alias:
ifconfig eth0:0 11.22.33.44
Nice, thanks for the quick response.
Too bad it hasn't statistics like a VLAN:
eth0.0 is the one created with vconfig
eth0:0 is created as u suggested. (I was hoping I could use the VLAN to keep different statistics too)
[root@...]# ifconfig
eth0 Link encap:Ethernet HWaddr --:--:--:--:--:--
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:9ff:fea2:930/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:126395 errors:0 dropped:0 overruns:0 frame:0
TX packets:26081 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33144168 (31.6 Mb) TX bytes:2923208 (2.7 Mb)
Interrupt:18 Base address:0xd300
eth0.0 Link encap:Ethernet HWaddr --:--:--:--:--:--
inet addr:192.168.0.133 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:9ff:fe11:1111/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2716 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:135411 (132.2 Kb)
eth0:0 Link encap:Ethernet HWaddr --:--:--:--:--:--
inet addr:192.168.0.133 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:18 Base address:0xd300
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:1683 errors:0 dropped:0 overruns:0 frame:0
TX packets:1683 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:231004 (225.5 Kb) TX bytes:231004 (225.5 Kb)Is it possible to make a VLAN work with a normal switch?
Or do I have to buy special hardware for that? (The VLAN would just be to have 2 IP's and keep statistics on those 2 IP's)
I wanted to forward specific traffic from my real interface to 2 virtual interfaces.
Last edited by johan84 (2010-02-25 19:13:17)
Offline