Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers gateways
# 1  
Old 11-12-2001

I cannot change my gateway. I have five locations (simulated) and i try to ping another of my locations but it says host unreachable and it is showing the gateway as the host i'm pinging withs ip address. I have tried the route command but I couldn't get it to work. Any suggestions on how to manually change my gateway to another address.
# 2  
Old 11-12-2001
First, what UNIX OS do you have on these locations? Every one is a bit different in how it stores network information.
# 3  
Old 11-12-2001
For Sun, you can edit the /etc/defaultrouter file to contain the IP address of your gateway.

Or you can mess around with the routing table and add or change your default route using something like this:

route add default <your gateway> <metric>


route change default <your gateway> <metric>

Check out the man page for route(1M) for more information.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

iptables / ip route packet routing with multiple gateways

Hi all. Linux noob here. I was hoping someone could help me with configuring some routing rules on my router, an Asus AC68. The router is connected to two gateways, wan0_gateway and wan1_gateway. I have rules set up in the router gui that will push all traffic from every IP other than my own... (0 Replies)
Discussion started by: Bishi
0 Replies

2. BSD

Two gateways

I have a web server running FreeBSD 7.2, i have configured two NICs in the following way: fxp0: sk0: gateway: both ip addresses are public but only those requests to fxp0 are successful. I have tried configuring nat and binat in sk0 but it... (4 Replies)
Discussion started by: edgarvm
4 Replies

3. AIX

2 default gateways

I have a bunch of servers on AIX, we have at least 2 NIC cards in each of them. We upgraded them from AIX 4.2 to AIX 5.2. Since then when we reboot a server its always coming up with 2 default gateways. Habitually this is not a problem but sometime its causing some connection problem. We... (10 Replies)
Discussion started by: ce9888
10 Replies

4. Shell Programming and Scripting

configuring 2-gateways in linux

Hi, I want to configure 2-gateways in Linux . Please tell me how I can achieve this. I am accesing 2-internet connection through these 2-gateways. So I am looking that if 1-gets down then also other one is working. Regards JAGDISH (1 Reply)
Discussion started by: jagdish.machhi@
1 Replies

5. Solaris

Configuring 1 Nic card with 2 IP addresses and 2 seperate default Gateways in Solaris

Hi ...... I'm trying to configure my Solaris servers with only one NIC card to have 2 IP addresses as well as 2 different default gateways. ( NOT to be confused with multi-pathing - with 2 physical IPs & 1 virtual ip) Thanks, Remi (1 Reply)
Discussion started by: Remi
1 Replies

6. AIX

setup of 2 gateways on AIX

Please, anybody help on resolving the following problem? I have 2 netwotks ( and ) on 2 different areas I need both networks to telnet the corresponding ethernet card. This is a prblem because AIX is configured with a default gateway. Please advice how to assign 2... (2 Replies)
Discussion started by: mynikolas
2 Replies

7. IP Networking

2 gateways on the same unix box

Hello there: I have these situation : I have a unix sco openserver 5.0.7 box and a windows server 2003. There is a main office and 2 remote office that log in trough a vpn tunnel. One tunnel From Main to remote1 and the other from Main to remote 2. Problem! The dsl connection i have is... (2 Replies)
Discussion started by: josramon
2 Replies
Login or Register to Ask a Question