HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can't add route to host
Operating System - HP-UX
1833802
Members
2451
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
05-31-2008 03:09 AM
05-31-2008 03:09 AM
I got folling sitation. Machine has multiply network cards and route table are
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.2.1.23 192.2.1.23 UH 0 lan5 4136
10.168.0.31 10.168.0.31 UH 0 lan0:1 4136
10.168.0.23 10.168.0.23 UH 0 lan0 4136
10.168.0.0 10.168.0.23 U 3 lan0 1500
10.168.0.0 10.168.0.31 U 3 lan0:1 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.168.0.1 UG 0 lan0 0
I connect the some host with crossover cable via new ethernet card with ip 172.16.0.3/255.255.0.0 and run following command
route add 172.16.0.2 172.16.0.3 0
And new route table becomes
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
172.16.0.3 172.16.0.3 UH 0 lan2 4136
192.2.1.23 192.2.1.23 UH 0 lan5 4136
10.168.0.31 10.168.0.31 UH 0 lan0:1 4136
10.168.0.23 10.168.0.23 UH 0 lan0 4136
172.16.0.2 172.16.0.3 UH 0 lan2 0
10.168.0.0 10.168.0.23 U 3 lan0 1500
10.168.0.0 10.168.0.31 U 3 lan0:1 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.168.0.1 UG 0 lan0 0
But when I trying to traceroute I got folowing warning
traceroute: Warning: Multiple interfaces found; using 10.168.0.31 @ lan0:1
traceroute to 172.16.0.2 (172.16.0.2), 30 hops max, 40 byte packets
And I could not send packets via 172.16.0.3 interface.
Wnat did I do wrong ?
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.2.1.23 192.2.1.23 UH 0 lan5 4136
10.168.0.31 10.168.0.31 UH 0 lan0:1 4136
10.168.0.23 10.168.0.23 UH 0 lan0 4136
10.168.0.0 10.168.0.23 U 3 lan0 1500
10.168.0.0 10.168.0.31 U 3 lan0:1 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.168.0.1 UG 0 lan0 0
I connect the some host with crossover cable via new ethernet card with ip 172.16.0.3/255.255.0.0 and run following command
route add 172.16.0.2 172.16.0.3 0
And new route table becomes
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
172.16.0.3 172.16.0.3 UH 0 lan2 4136
192.2.1.23 192.2.1.23 UH 0 lan5 4136
10.168.0.31 10.168.0.31 UH 0 lan0:1 4136
10.168.0.23 10.168.0.23 UH 0 lan0 4136
172.16.0.2 172.16.0.3 UH 0 lan2 0
10.168.0.0 10.168.0.23 U 3 lan0 1500
10.168.0.0 10.168.0.31 U 3 lan0:1 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.168.0.1 UG 0 lan0 0
But when I trying to traceroute I got folowing warning
traceroute: Warning: Multiple interfaces found; using 10.168.0.31 @ lan0:1
traceroute to 172.16.0.2 (172.16.0.2), 30 hops max, 40 byte packets
And I could not send packets via 172.16.0.3 interface.
Wnat did I do wrong ?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2008 05:18 AM
05-31-2008 05:18 AM
Solution
You did not do anything wrong. The traceroute commnad picks one of the IPs of the default lan0 and tries to find a route to the destination.
You should use the -i option in traceroute. Or forget about traceroute and see if you can connect to the crossover host via whatever and then verify the connection with netstat on either side.
You should use the -i option in traceroute. Or forget about traceroute and see if you can connect to the crossover host via whatever and then verify the connection with netstat on either side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2008 10:29 AM
05-31-2008 10:29 AM
Re: Can't add route to host
try like this
#route add net 172.16.0.2 netmask 255.255.0.0 172.16.0.3 1
#route add net 172.16.0.2 netmask 255.255.0.0 172.16.0.3 1
a warrior never quits
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP