LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-19-2005, 02:52 PM   #1
assyrian47
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
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?
 
Old 04-20-2005, 12:50 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,397

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 01:40 AM
sendmail sending on alias IP eth0:1 Finlay Linux - Networking 10 11-28-2005 01:27 PM
eth0 and eth1 alias switches in SuSE 9.2 mephesto Linux - Networking 3 03-02-2005 08:20 PM
help - eth0 alias conflict with my USB-ethernet card darkelf Linux - Networking 1 11-05-2003 11:43 AM
ifcfg-eth0:X alias problem dgenne Linux - Networking 1 03-17-2002 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration