Results 1 to 2 of 2
I am using RHEL WS. Can anyone tell me how to setup routing and dual ifaces on same NIC? I have an app with a db that looks for other ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-09-2006 #1
- Join Date
- Dec 2006
routing for dual ifaces and IPs on same NIC
I want to configure the app and db to see eth0 as the primary iface and then route all external IP traffic via an alias IP and interface eth0:0 on the same NIC. How do I route all external traffic to have source address from eth0:0 via the 10.1.1.1 gateway? Assume i have:
eth0 as.. (app and db must use this as primary)
eth0:0 as (I must use this for all external traffic)
Also need to use a multi-cast group address of 255.0.0.22
- 12-10-2006 #2
- Join Date
- Apr 2004
If I understand you correctly you want to set up eth0 for your app but have eth0:0 for normal internet traffic.
From "man route":
dev If force the route to be associated with the specified device
route add default gw 10.1.1.1 dev eth0:0
Let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.