PDA

View Full Version : Multiple ip addresses same card


frharris27
2006-05-09, 01:14 PM CDT
I just upgraded from FC4 to FC5 and I'm having a problem getting multiple ip addresses to work on the same card. It's a very odd problem. I think it has something to do with routing and the gateway because the 2nd ip address works inside the same subnet, but when it's confronted with a packet to send outside the subnet, it chockes. For instance I can ping it inside the subnet, but not outside.

Here are my config files. Ip addresses are not correct, but show what's going on.

ifcfg-eth0

# VIA Technologies, Inc. VT6102 [Rhine-II]
DEVICE=eth0
BOOTPROTO=none
GATEWAY=72.2.162.25
HWADDR=00:30:18:A1:92:A5
IPADDR=72.2.162.26
NETMASK=255.255.255.248
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes


ifcfg-eth0:1

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=72.2.162.25
TYPE=Ethernet
DEVICE=eth0:0
HWADDR=00:30:18:a1:92:a5
BOOTPROTO=none
NETMASK=255.255.255.248
IPADDR=72.2.162.27
USERCTL=no
IPV6INIT=no
ONPARENT=yes
PEERDNS=yes

ccrvic
2006-05-09, 01:33 PM CDT
IIp addresses are not correct, but show what's going on.

Your IP addresses are very important here; you appear to be trying to create two interfaces on the same subnet. Make sure this is what you really intend...


GATEWAY=72.2.162.25
IPADDR=72.2.162.26
NETMASK=255.255.255.248

GATEWAY=72.2.162.25
NETMASK=255.255.255.248
IPADDR=72.2.162.27


Think about which interface you'd want to use to send a packet to the local subnet, and which to send to the Internet. Then maybe we can work out your network structure...

Vic.

frharris27
2006-05-09, 02:28 PM CDT
ccrvic, thanks for replying. I need two public ip addresses on the same machine/subnet because I want to host 2 https sites. The ssl protocol requires a different ip address for each ssl host name. The ip's I gave above are comletely analogous to my own. This setup also worked well with FC4 and the same hardware.

I think it may be either the nic or selinux. I just noticed from my logs that the nic is not running correctly, only half duplex and 10 Mbps.

May 9 06:06:10 bulldozer kernel: eth0: link up, 10Mbps, half-duplex, lpa 0x0021

I also get an selinux error message right about that time.
May 9 06:06:10 bulldozer kernel: SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
May 9 06:06:13 bulldozer kernel: audit(1147179973.417:2): avc: denied { unlink } for pid=1602 comm="depmod" name="modules.pcimap" dev=dm-0 ino=22806579 scontext=system_u:system_r:depmod_t:s0 tcontext=root:object_r:modules_object_t:s0 tclass=file

Also, there's this message here about the via nic.

May 9 09:48:04 bulldozer kernel: 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
May 9 09:48:04 bulldozer kernel: NET: Registered protocol family 23
May 9 09:48:04 bulldozer kernel: via82xx: Assuming DXS channels with 48k fixed sample rate.
May 9 09:48:04 bulldozer kernel: Please try dxs_support=5 option
May 9 09:48:04 bulldozer kernel: and report if it works on your machine.
May 9 09:48:04 bulldozer kernel: For more details, read ALSA-Configuration.txt.

I'm going to try another nic and without selinux tonight, but the server is being used today.

Thanks.