LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Eth0 IP Alias Problem (https://www.linuxquestions.org/questions/slackware-14/eth0-ip-alias-problem-314972/)

assyrian47 04-19-2005 01:52 PM

Eth0 IP Alias Problem
 
I set the ip addresses for the three cards on my machine in the etc/rc.d/inet1.conf:

# Config information for eth0:
IPADDR[0]="WANIP1"
NETMASK[0]="255.255.255.240"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]="LANIP1"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]="LANIP2"
NETMASK[2]="255.255.255.0"
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

I set the IP aliases for eth0 in the rc.inet1 file as

# Bring up the aliases on the WAN port
ifconfig eth0:0 WANIP1 netmask 255.255.255.240
ifconfig eth0:1 WANIP2 netmask 255.255.255.240
ifconfig eth0:2 WANIP3 netmask 255.255.255.240
ifconfig eth1:0 192.168.0.252 netmask 255.255.255.0
# End of /etc/rc.d/rc.inet1

The problem is that I can only add three WAN IP addresses. If I add a fourth it is set, but cannot be reached from an outside address.

Is there something wrong with my setup?

keefaz 04-20-2005 11:50 AM

You set 3 alias for eth0 and one for eth1, you said that the fourth can
not be reached from an outside adress, I take it you tell about eth1:0

Is eth1 connected to the network ?


All times are GMT -5. The time now is 10:28 PM.