LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-14-2006, 05:28 AM   #1
hkj
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
ip aliases not work outside same netmask


Hello,

I have a Redhat server with IP range from 202.85.1.120-141 (i.e. interface in eth0, eth0:0, eth0:1, etc.), with netmask 255.255.255.0 and default gateway 202.85.1.1.

Now I am getting a strange problem that when I put the server online, all ip addresses of the server is reachable within same netmask (i.e. 202.85.1.xxx, I try to ping 202.85.1.120-141 and success). However, outside the subnet , they can only access 202.85.1.120 (eth0), and all ip aliases (i.e. 202.85.1.121-141) are not reachable at all.

Now I would like to ask:
1. What's wrong for this strange situation?
2. Which commands can I try for validation?
3. Which files can I inspect for verficiation?

Here are some information about this problem. Thank you for your great help.

Joe

[joe@computer joe]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.120 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:676900 errors:0 dropped:0 overruns:0 frame:0
TX packets:781339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:5 Base address:0x3000

eth0:0 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.121 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:1 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.122 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:2 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.123 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:3 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.124 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:4 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.125 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:5 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.126 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:6 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.127 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:7 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.128 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:8 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.129 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:9 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.130 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:10 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.131 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:11 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.132 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:12 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.133 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:13 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.134 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:14 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.135 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:15 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.136 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:16 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.137 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:17 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.138 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:18 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.139 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:19 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.140 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

eth0:20 Link encap:Ethernet HWaddr 00:50:8B:E0:37:04
inet addr:202.85.1.141 Bcast:202.85.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x3000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:60109 errors:0 dropped:0 overruns:0 frame:0
TX packets:60109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

[joe@computer joe]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
202.85.1.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 202.85.1.1 0.0.0.0 UG 40 0 0 eth0

[joe@computer joe]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
202.85.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 202.85.1.1 0.0.0.0 UG 0 0 0 eth0
 
Old 05-14-2006, 08:08 AM   #2
BSchindler
Member
 
Registered: May 2006
Location: Los Angeles, CA USA
Distribution: RHAS3, RHAS4, RHEL4, RH6, RH7.2, FC2-7, Gentoo, DSL
Posts: 49

Rep: Reputation: 15
Hi Joe,

You do not need to list all your ifconfig again! Nothing is wrong with this configuration, but is is a bit goofy!!! In general, when you want to have a subnet you put it on a binary boundry, so your network administrator should really give you .128 - .160 (for a block of 32 addresses).

This way, the router which directs traffic to your subnet uses a netmast of 255.255.255.192

If you are the only machine running on the subnet you are running on a VLAN? If so, your network admin should give you a better block OR setup separate rules based upon address boundaries. Then, from outside the subnet you will have access.

BTW, in the future, you really should post what version of RH you are running ... thanx

HTH
 
Old 05-14-2006, 08:17 AM   #3
hkj
LQ Newbie
 
Registered: May 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Sorry for my inconvenience.

The IP range is assigned by data center. I will check further if there exists any problem there.

The server is based on RH7.1 at first but I recompiled the kernel and update almost all packages.
 
  


Reply



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
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM
Can't get mail aliases to work properly npinney Linux - General 5 08-25-2005 03:51 AM
bashrc Aliases don't work soren625 Linux - Newbie 10 01-27-2005 08:59 AM
netmask ray5_83 Linux - Networking 1 09-12-2004 11:20 AM
netmask spank Linux - Newbie 3 12-15-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:44 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
Open Source Consulting | Domain Registration