- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: routing problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 10:44 AM
06-09-2005 10:44 AM
routing problem
INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="108.1.107.11"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_NAME[1]="lan1"
IP_ADDRESS[1]="108.1.11.17"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
ROUTE_DESTINATION[0]="net 108.1.15.0"
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="108.1.11.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="108.1.107.1"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
My routing tabl is like the following.
#netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
105.1.11.17 105.1.11.17 UH 0 lan1 4136
105.1.107.11 105.1.107.11 UH 0 lan0 4136
105.1.107.0 105.1.107.11 U 2 lan0 1500
105.1.11.0 105.1.11.17 U 2 lan1 1500
105.1.11.0 105.1.107.1 UG 0 lan0 0
105.1.15.0 105.1.11.1 UG 0 lan1 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 105.1.107.1 UG 0 lan0 0
default 105.1.11.1 UG 0 lan1 0
When I run traceroute to 65.203.240.22, it goes to 108.1.107.1 despite that it is supposed to go to 108.1.11.1.
Is there anything wrong with netconf file.
I am receiving data by using MQ through 108.1.107.11 IP. When a packet goest out, it shoud pass 108.1.11.1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 10:53 AM
06-09-2005 10:53 AM
Re: routing problem
first, you don't want to have two gateways.
so: # route delete 105.1.11.1
second: loose the "net" in:
ROUTE_DESTINATION[0]="net 108.1.15.0"
also,
and you could also specify an option to traceroute to use idx=2, or lan intf 2nd-one. I think it picks up lan# (which # is lowest).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 05:51 PM
06-09-2005 05:51 PM
Re: routing problem
In the netconf file, change the following:
ROUTE_DESTINATION[0]="net 108.1.15.0"
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="108.1.11.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
Change [0] to [1]
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="108.1.107.1"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
Change [1] to [0]
This should work...
~Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 12:25 AM
06-10-2005 12:25 AM
Re: routing problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 12:34 AM
06-10-2005 12:34 AM
Re: routing problem
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 01:49 AM
06-10-2005 01:49 AM
Re: routing problem
Your IP addresses are 108.1.107.11 and 108.1.11.17 with 255.255.255.0 subnet masks, ie on 2 different subnets 108.1.107.0/24 and 108.1.11.0/24.
You specify 2 "default" routes, you should only have one. If you want some specific traffic to go via lan1, then add static routes for those subnets via the router on that subnet.
However, the output from netstat appears to show routers in the 105.1.xxx.xxx networks. Is this a misprint?
Assuming also that you have mistyped the output, then you have invalid routes in this output - for example 10(5/8).1.15.0 as a route. Since you have a 24 bit subnet mask, your IP stack cannot send a packet to this host because it's not on the same subnet as either of your interface cards.
You also say "When I run traceroute to 65.203.240.22, it goes to 108.1.107.1 despite that it is supposed to go to 108.1.11.1."
From looking at your routing table only, this is absolutely correct. You are tracing route to a 65.203.240.x address. Since you have no static routes explicitly for this subnet, the default route is used.
I think you need to get the information correct in order for us to help you more. Fore example resolve the 105/108 issue. Also since you have more routes than your netconf shows, do you have route add's in your startup files, or were they executed manually? Or perhaps are you running gated? (is GATED=1 set in your netconf?)
Perhaps you should also outline in more detail what you actually want to happen (eg which traffic you want to go where?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 06:52 AM
06-10-2005 06:52 AM
Re: routing problem
108 is correct one.
I do not put anything in startup script for routing. Also, the "gated" is not running.
Actually, another Unix admin set the routing table in netconf file. I know that this is totally wrong.
That is why I need your help.
The main purpose of this server is like the followings.
I should receive MQ data from 108.102.36.225 (sender) server through 108.1.107.1.
As you can see at netconf file, the server (receiver) has two IP address. One is 108.1.11.17 and the other one is 108.1.107.11. When I remove default gateway, 108.1.107.1 from routing table, 108.102.36.225 server can not ping the receiver server and can not send MQ data to the server.If I remove 108.1.11.1 gateway, it goes to 108.1.107.1 when I run traceroute to 65.203.240.22. I know that it use the default gateway. I want to use 108.1.11.1 when I traceroute to 65.203.240.22
Please help me out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 07:14 PM
06-10-2005 07:14 PM
Re: routing problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 02:01 AM
06-11-2005 02:01 AM
Re: routing problem
let's see if we can try a few commands on the 'console', and if things break, simply reboot your server, but the lesson herein, is, you just may fix your problems !
begin here:
get on the system CONSOLE and try a couple of things herein:
display all the ARP entries, and see if any hosts are listed.
# arp -a
arp entries show you the 'mac' addresses of those 'host's that your system connects or knows about from a previous connection (in/out) from your server. (It is nice to know if your server has certain host entries that it can already resolve IP to a 'mac' address. just something to keep in mind in the future of networking knowledge.
I. USE ONLY ONE PHYSICAL INTERFACE
===================================
on the console try a couple of things:
# ifconfig lan0
# ifconfig lan1
remove lan0 and lan1 IPs:
# ifconfig lan0 0.0.0.0
# ifconfig lan1 0.0.0.0
now define 108.1.11.17 on lan0, and
108.1.11.17 on lan0:[index=1]
# ifconfig lan0 108.1.11.17 netmask 255.255.255.0
# ifconfig lan0:1 108.1.11.17 netmask 255.255.255.0
display what you just did:
# ifconfig lan0
# ifconfig lan0:1
# netstat -rn
II. CLEAN UP ANY DEFINED ROUTES
===========================
# route -f -n
# route -f
# netstat -rn
ok, there should be no routes, if so, then delete the defaults:
# route delete net 105.1.107.1
# route delete net 105.1.11.1
now, that route defaults and route entries are cleaned up, define the 'default' route
III. CREATE ONE DEFAULT ROUTE
=============================
# route add net default 105.1.107.1 1
note, the 1 at the end is a 1-hop count.
# netstat -rn
# traceroute
IV. SETUP THE ROUTE TO THE 108.1.15.x
I don't think you want to setup a Route to the 108.1.15.0 network. Consult with you network guy to have gateway: 108.1.107.1 provide the necessary routes to gateway: 108.1.11.1 so you can get to the 108.1.15.x hosts.
if you ping say, 108.1.15.
108.1.107.1 -> 108.1.11.1 -> 108.1.15.x
you can try this one as a separate route on your system, but it's going out on the one "default" route you are using on your server that is the default: 108.1.107.1
# route add 108.1.15.0 netmask 255.255.255.0 108.1.11.1
# netstat -rn
FINALLY, UP DATE YOUR netconf file
==================================
make certain there is only ONE and only ONE
netconf file in /etc/rc.config.d, do *not* save other netconf files in this directory as say, "netconfOLD".
copy the netconf to a /tmp/netconf.sav File.
edit your /etc/rc.config.d/netconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 02:09 AM
06-11-2005 02:09 AM
Re: routing problem
I think I left out: 65.203.240.22
so have 'router' 108.1.107.1 route to 108.1.11.1, and then 108.1.11.1 into 65.203.240.22, somehow.
it sounds like your network guys can help with this one, I hope ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 02:50 AM
06-11-2005 02:50 AM
Re: routing problem
2 - I really do not like host based routing, other than for the local networks & default routes. This should be a task for the network guys. That said, whay you _intend_ is possible.
3 - the netstat -rn does not correspond to NETCONF & you have two default gateways not one default and one net.
4 - The /etc/rc.config.d/netconf file is probably NOTHING to do with the actual lan configs you currently have running. I'me guessing when you do netstat -in you get something like
lan0 105.1.107.11
lan1 105.1.11.17
You could try (on the console) doing
# cd /sbin/init.d
# ./net stop; ./net start
But I think this may make matters much worse.
5 - If you alter the LAN addresses you may also need to re-set/re-define the MQ Series channels etc. It has been 5-7 years since I did this so I'm going to have to reccomend you speak to IBM about this!!
Regards
Tim