Help with Default Gateway


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems AIX Help with Default Gateway
# 1  
Help with Default Gateway

Hi,

I have two interfaces on m AIX 5.3 box. One going to 192.168.1.x and it has a gateway of 192.168.1.1.

I configured the other gateway with 192.168.2.x and the default gateway as 192.168.2.1. But I can't get connectivity to the 192.168.2.1 network. Can someone help me out and let me know what's needed?

I've used smitty route and the chdev command but still not able to get connectivity to the 2.x network.
# 2  
Some common problems:

Did you "up" the second gateway? "ifconfig ent1 up"

You did a "chdev", did you do it with a "-p"? If so it will only become active at the next boot time.

Does the second interface have connectivity at all? Check the lights besides the cable connector, they should be both green.

I hope this helps.

bakunin
# 3  
Quote:
Originally Posted by bakunin
Some common problems:

Did you "up" the second gateway? "ifconfig ent1 up"

You did a "chdev", did you do it with a "-p"? If so it will only become active at the next boot time.

Does the second interface have connectivity at all? Check the lights besides the cable connector, they should be both green.

I hope this helps.

bakunin
Yes the second interface is up.
The command I used was "chdev -l inet0 -a route=0,<ip-addr-of-def-gw>"
All lights are green.
# 4  
You should check to make sure you don't have 2 default gateways setup (netstat -rn). AIX will let you define 2 gateways as 'default' but it causes lots of goofy network problems.

HTH!
# 5  
How can I ensure that the only communication to the 192.168.2.x network is via 192.168.2.x interface.
# 6  
You define the gateway just don't make it a 'default' gateway.
I believe the command would be:
chdev -l inet0 -a route=192.168.2.0,192.168.2.1

I typically use 'smitty route' to guarantee it will be a persistent route after rebooting.
# 7  
when configuring the second interface (that should not have a default gateway) use
Code:
smitty chinet

Another note: if you have two default gateways, they will both come back on a reboot even if you do a route delete. You must use
Code:
smitty route

to delete the second route to clean it out of the system completly.

Are you sure you configured the two adapters for the right networks (you don't have them backwards)? Is your netmask set properly on both adapters?

Edit: I edited the first command from smitty mktcpip to smitty chinet. Had a brain fart.

Last edited by Padow; 02-06-2009 at 06:51 PM..
Padow
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #645
Difficulty: Easy
The first web browser, WorldWideWeb, was invented on the NeXTSTEP platform.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

2. IP Networking

Default Gateway

I am am using IPv6 IP's with an OS of Debian. Is it possible to set a *static* default gateway w/o the router being connected? Will that gateway change when the router is connected? TIA (0 Replies)
Discussion started by: Meow613
0 Replies

3. Red Hat

Change Default gateway

Hi..I have to change default gateway in my linux machine. Its OS is RHEL6. I followed following steps. 1.run command ip route to check current default gateway 2.delete that gateway with command route del default gw x.x.x.x eth2 3.Add new gatewy with command below route add default gateway... (3 Replies)
Discussion started by: deljatt
3 Replies

4. Red Hat

Can not ping default gateway

Hi, Here is the issue: There are 2 identical systems in the same subnet here. They can ping and ssh each other. One can ping the default gateway and one can not with error '... icmp_seq Destination Host Unreachable'. I can't find any difference between the two systems in terms of network... (4 Replies)
Discussion started by: aixlover
4 Replies

5. Linux

GNUGK-How to setup static gateway to gateway routing

Dear Sir I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper. I am having a problem, configuring static call routing on GNUGK in the section ... (0 Replies)
Discussion started by: mfondoum
0 Replies

6. HP-UX

where can i modify default gateway

where in configuration files can i modify default gateway in hp-ux11iv3 (5 Replies)
Discussion started by: h@foorsa.biz
5 Replies

7. IP Networking

default gateway in unix?

i'm a real unix newbie, setting up a network, with a router to router vpn connection with a remote site, all the win stuff is talking and pinging and all the stuff it should be doing (yeah and crashing too, lol) but no communication with the unix box, i think the problem is with my default... (3 Replies)
Discussion started by: smcg
3 Replies

8. Solaris

How can I change the default gateway?

my actual default gatewas IP is: default 192.168.11.254 and I need to change it to 192.168.11.2, I'm using Solaris 9, how can i do it? and how i can save it in case that the machine restart and have the new default gateway IP saved? (5 Replies)
Discussion started by: Lestat
5 Replies

9. HP-UX

How to add another default gateway

I am using HP-UX 11i and I need to add another default gateway. how can I do that ? (3 Replies)
Discussion started by: salhoub
3 Replies

Featured Tech Videos