Cannot add gateway


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot add gateway
# 1  
Old 12-08-2014
Cannot add gateway

Hi,

OS: Solaris 11.2 64bit
IP address: 172.16.10.10
Netmask: 255.255.254.0
Gateway: 172.16.2.254

From windows box, i can set and ping gateway. IP address is same segment with windows box. But on solaris i cannot set gateway.
Code:
route add default 172.16.2.254
add net default: gateway 172.16.2.254: Network is unreachable

It's said network is unreacheable. Any idea why?

Thanks.
# 2  
Old 12-08-2014
You might want to consider adding -p to your route command to make it persistent across reboots.

Reboot the host then and check for network connectivity.

Regards
Peasant.
# 3  
Old 12-08-2014
I already put
Code:
-p

but still same.
# 4  
Old 12-08-2014
The gateway is in a different subnet... That is why the router is not reachable.
# 5  
Old 12-08-2014
I'd say your netmask is too restrictive. Try allowing two more bits, i.e. 255.255.240.0.
# 6  
Old 12-08-2014
It not about ip but it's nic. When i change to net1, i can set gateway.
# 7  
Old 12-08-2014
With the settings you provided in your first post, reaching the gateway is just not possible. If you are using different settings on your net1 interface, the output of ifconfig -a might be usefull for us, to figure out what is going on...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 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. Linux

Unable to add route with a specific gateway IP

Hi, This is the routing table on a RHEL 7 server : # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.132.81.145 0.0.0.0 UG 100 0 0 eno49 10.132.81.144 0.0.0.0 255.255.255.240 U 100 0 0 eno49... (4 Replies)
Discussion started by: anaigini45
4 Replies

3. Solaris

how to add a default gateway in a zone of different VLAN of global zone

Hi Greetings... I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies

4. 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

5. Solaris

Add gateway

Hi Community, I've a question about network adaptors. I've installed Solaris 10 configuring the ce0 port with an IP(10.23.8.15) , an interface_name (first) and a gateway(10.23.8.1) . I need to change the name of the interface ce0 and to configure another interface (ce1) with another... (1 Reply)
Discussion started by: Sunb3
1 Replies

6. UNIX for Dummies Questions & Answers

/etc/rc.d/netif wont add default gateway

hi! whenever i run /etc/rc.d/netif it will read rc.conf and add the pc IP and netmask but it wont read the default gateway resulting lost connectivity to internet my rc.conf: when i issue /etc/rc.d/netif restart: the result of running netif to routing tables: # netstat -rn i... (3 Replies)
Discussion started by: rdns
3 Replies

7. 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

8. UNIX for Dummies Questions & Answers

How to add 2 gateway routes?

I need some help adding routes in sco. I am using SCO Openserver 5.0.4. Basically I have 2 gateways here. The first is 10.15.1.1 and allows me access to the rest of the computers in the office and in other offices. The other gateway is 10.15.10.2 and is the sonicwall that will allow access... (3 Replies)
Discussion started by: cstovall
3 Replies

9. UNIX for Dummies Questions & Answers

Aix Add Gateway

I have a AIX lates OS. I;m trying to setup a remote office using a telnet section and for some reazon it wont let me login in to the server. I've done this type of configuration on a SCO 5.0.6 . In SCO there is a file call S99route and that is where you put the gateway and it works just... (3 Replies)
Discussion started by: josramon
3 Replies

10. UNIX for Dummies Questions & Answers

Add route gateway -> Restart !! Lose it

:confused: Hi: I donīt know how to add route gateway and when restart the machine lose this route and put other. In SCO ver 5.6 Enterprise write: etc\route delete gateway route add gateway 199.199.1.1. so , netstat -rn to see if has change -> all ok Restart -> !!!... (2 Replies)
Discussion started by: AlvaroD
2 Replies
Login or Register to Ask a Question