Networking Forums

Networking Forums > Computer Networking > Linux Networking > virtual IP's not routing properly

Reply
Thread Tools Display Modes

virtual IP's not routing properly

 
 
Andrew P. Kaplan
Guest
Posts: n/a

 
      04-19-2004, 07:46 PM
Running RedHat 9.0 I added 5 virutal eth interfaces as follows: The problem
is that I can only access ifcfg-eth0 AND ifcfg-eth0:0 outside the local
network. The remaining virtual IP are only available from the local
network.

I checked any problems with the firewalls. I also added route -n output. I
have done this with sucess on other RH boxes and an stumped as to why this
is working. Any help would be greatly appreciated.

ifcfg-eth0, ifcfg-eth0:0, ifcfg-eth0:1, ifcfg-eth0:2, ifcfg-eth0:3,
ifcfg-eth0:4

DEVICE=eth0 **WORKS**
ONBOOT=yes
BOOTPROTO=static
IPADDR=209.113.151.18
NETMASK=255.255.255.128
GATEWAY=209.113.151.1

Contents of eth:0 **WORKS**
DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=209.113.151.30
NETMASK=255.255.255.128
GATEWAY=209.113.151.1


Contents of eth0:1 **DOESN'T WORK**
DEVICE=eth0:1
ONBOOT=yes
BOOTPROTO=static
IPADDR=209.113.151.31
NETMASK=255.255.255.128
GATEWAY=209.113.151.1


[root@cp sbin]# ./route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
209.113.151.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 209.113.151.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 1 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 1 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 1 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 1 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 1 0 0 eth0
0.0.0.0 209.113.151.1 0.0.0.0 UG 1 0 0 eth0


Snippet from ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:75:E3:35:8C
inet addr:209.113.151.18 Bcast:209.113.151.127
Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82905120 errors:0 dropped:0 overruns:1 frame:0
TX packets:43780708 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:629400957 (600.2 Mb) TX bytes:571159821 (544.7 Mb)
Interrupt:10 Base address:0xa400

eth0:0 Link encap:Ethernet HWaddr 00:04:75:E3:35:8C
inet addr:209.113.151.30 Bcast:209.113.151.127
Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82905120 errors:0 dropped:0 overruns:1 frame:0
TX packets:43780708 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:629400957 (600.2 Mb) TX bytes:571159821 (544.7 Mb)
Interrupt:10 Base address:0xa400

eth0:1 Link encap:Ethernet HWaddr 00:04:75:E3:35:8C
inet addr:209.113.151.31 Bcast:209.113.151.127
Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82905120 errors:0 dropped:0 overruns:1 frame:0
TX packets:43780708 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:629400957 (600.2 Mb) TX bytes:571159821 (544.7 Mb)
Interrupt:10 Base address:0xa400




--
Andrew P. Kaplan
www.cshore.com

"We will not prematurely or unnecessarily risk the costs of worldwide
nuclear war in which even the fruits of victory would be ashes in our
mouth - but neither will we shrink from that risk at any time it must be
faced."


John F. Kennedy



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need information about virtual routing (VR and VRF) David C. Linux Networking 0 10-31-2011 12:50 PM
Simulated NAT Traversal on Virtual Box | Two Virtual Interface - eth-0/eth1 Sumit Linux Networking 0 06-24-2011 01:09 AM
Cannot install NIC properly Alastair Windows Networking 1 07-27-2008 02:35 AM
ICS not working properly AuthorizedUser Wireless Networks 2 08-23-2004 04:46 AM
advanced routing on virtual interfaces nobody Linux Networking 0 11-10-2003 06:35 PM



1 2 3 4 5 6 7 8 9 10 11