Fedora Linux Support Community & Resources Center
  #1  
Old 9th May 2006, 08:14 PM
frharris27 Offline
Registered User
 
Join Date: May 2006
Posts: 12
Multiple ip addresses same card

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
Reply With Quote
  #2  
Old 9th May 2006, 08:33 PM
ccrvic Offline
Registered User
 
Join Date: Apr 2006
Posts: 1,092
Quote:
Originally Posted by frharris27
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...

Quote:
Originally Posted by frharris27
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.
Reply With Quote
  #3  
Old 9th May 2006, 09:28 PM
frharris27 Offline
Registered User
 
Join Date: May 2006
Posts: 12
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.
Reply With Quote
Reply

Tags
addresses, card, multiple

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple ip addresses + one NIC? darkchemist Servers & Networking 5 29th May 2006 12:01 AM
Multiple MAC addresses to one NIC nosupport Servers & Networking 8 22nd April 2006 02:41 AM
Multiple MAC addresses? Badger Servers & Networking 3 10th June 2004 04:55 AM


Current GMT-time: 07:00 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat