Multiple Interfaces and Routes

Thread Tools Search this Thread
Special Forums IP Networking Multiple Interfaces and Routes
# 1  
Old 06-14-2001
Multiple Interfaces and Routes

I have a Unix box with 2 network interfaces on the same IP subnet and would like to add a host route via a specific interface. Any assistance would be greatly appreciated.
# 2  
Old 06-14-2001
Check the man page for 'route' as the syntax varies between different versions of Unix. On Linux, for example, you would do something like:

route add -host <I>X.X.X.X</I> netmask <I>X.X.X.X</I> gw <I>X.X.X.X</I> dev <I>interface</I>

replace the X's as apparopriate with your target, netmask, and gateway values.
# 3  
Old 06-14-2001
I'm running SunOs 5.8 and have read through the 'man' pages and couldn't find any reference to the interface specific options. Thanks for your assistance.
# 4  
Old 06-23-2001
Most route commands have the interface as one of the last options. This is because you can specify routes based on the interface. Can you do a man on your route command and post the results?
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. AIX

Problem with multiple network interfaces

Hi .. we have two AIX 5.3 systems with a small client server app communicating over a TCP socket. Box A has a single network interface where the server app (in Java) opens a well known port and waits for connections from Box B. Box B has two network interfaces, X and Y. Interface X has the... (4 Replies)
Discussion started by: RonBowater
4 Replies

2. Solaris

Solaris 8: Multiple primary interfaces connected to the same network

Hello, I have a machine with Solaris 8, and it has multiple interfaces that are connected to the same network which means they all have metric 0 (1 hop) to the default gateway. assume: * e1000g0: * e1000g2: * e1000g4: * e1000g5: * gateway:... (11 Replies)
Discussion started by: aeg
11 Replies

3. Solaris

Adding multiple virtual interfaces on a non global zone.

Hello All, I have a requirement to add multiple virtual interfaces on a non-global zone (Solaris 10). The global zone is a 2 node Veritas Cluster Server. So, my question is do we have to make any modifications to the cluster config (which I think should not be the case)? Can anyone help with me... (11 Replies)
Discussion started by: mahive
11 Replies

4. AIX

Multiple LAN Interfaces

Is there a way to add routes using the add route command in AIX to add different routes and bind them to different NICS installed in the box? (2 Replies)
Discussion started by: Docboyeee
2 Replies

5. IP Networking

DHCPD, Multiple interfaces, Single Subnet

I have an OpenBSD 3.7 firewall with five network interfaces on it, one of which is connected to the Internet. I'd like to use the remaining four interfaces as a network switch for a single internal subnet. The main problem I have is that the DHCP daemon doesn't like multiple interfaces matching... (0 Replies)
Discussion started by: vertigo23
0 Replies

6. AIX

Multiple Default routes

Hi All, I have a AIX server running v5.2 and its having multiple default routes configured to two seperate gateway. Here's the output of -- netstat -rn Routing tables Destination Gateway Flags Refs Use If PMTU Exp Groups Route Tree for Protocol Family 2... (2 Replies)
Discussion started by: rramanuj
2 Replies

7. UNIX for Dummies Questions & Answers

multiple interfaces with apache?

I'm having some problems here, and was wondering whether it was an Apache problem. We have two firewalls where I'm at, Apache is installed on the second one. The first firewall is setup to forward all outside requests to port 80 on the second firewall. Apache is only working on the lan, not the... (2 Replies)
Discussion started by: cerberusofhnsg
2 Replies
Login or Register to Ask a Question