Hi all,
Just now i had change the gateway for a server
Go to /etc/defaultrouter, change to 10.86.33.1
route delete default 10.86.39.222
route add default 10.86.33.1
now cannot telnet to the server already..
any idea?
Hi all,
Just now i had change the gateway for a server
Go to /etc/defaultrouter, change to 10.86.33.1
route delete default 10.86.39.222
route add default 10.86.33.1
now cannot telnet to the server already..
any idea?
Hard to tell without more clues. 10.86.33.1 might simply be unreachable.
ya.. i had solve the problem.
the mainly problem is i remote to the server.
so when i run "route delete default 10.86.39.222"
it already delete the gateway, and the network disconnect between me and server.
thus, i need to use a console cable to control the server and change the gateway.
Or you could add new gateway first, then delete old one. There can be multiple default gateways configured in Solaris, so for a moment you will have two.
From 10.86.33.1 change to 10.86.39.222
i had change the gateway by edit the /etc/defaultrouter and reboot
when i traceroute the IP, it seem din use the gateway.
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.86.32.0 10.86.33.18 U 1 274 hme0
224.0.0.0 10.86.33.18 U 1 0 hme0
default 10.86.39.222 UG 1 282
127.0.0.1 127.0.0.1 UH 4 696 lo0
# traceroute 10.13.15.222
traceroute to 10.13.15.222 (10.13.15.222), 30 hops max, 40 byte packets
1 10.86.33.2 (10.86.33.2) 0.439 ms 0.355 ms 0.363 ms
2 10.86.32.252 (10.86.32.252) 0.621 ms 0.540 ms 0.532 ms
3 117.58.186.61 (117.58.186.61) 37.913 ms 150.129 ms 123.220 ms
4 220.232.26.49 (220.232.26.49) 95.977 ms 75.823 ms 67.358 ms
5 220.232.26.50 (220.232.26.50) 112.043 ms 124.137 ms 103.480 ms
6 10.60.48.23 (10.60.48.23) 87.116 ms 89.638 ms 95.185 ms
7 10.60.254.22 (10.60.254.22) 96.460 ms 95.041 ms 95.208 ms
8 10.13.243.2 (10.13.243.2) 119.496 ms 106.174 ms 97.186 ms
9 * * *
10 * * *
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.86.33.18 netmask fffff000 broadcast 10.86.47.255
ether 0:b:5d:f3:de:b
Any idea ??
---------- Post updated at 09:42 AM ---------- Previous update was at 08:51 AM ----------
me just now add route in the routing table
# route add net 10.13.0.0 10.86.39.222
but when i run the traceroute command, it still come out from 10.86.33.1 instead of 10.86.39.222
Might be incorrect/missing netmask settings.
Are your networks declared in the netmasks database ?