making new default gateway take affect


 
Thread Tools Search this Thread
Operating Systems Solaris making new default gateway take affect
# 1  
Old 04-20-2007
making new default gateway take affect

How do you make the changes take affect when you change the subnet masks or default router without rebooting?
# 2  
Old 04-20-2007
change the /etc/netmasks and /etc/defaultrouter first.

then

Code:
route delete default <ip of old defaultrouter>
ifconfig <interface> <ipaddress> netmask <new netmask>
route add default <ip of new defaultrouter>

Sometimes you need to bounce the network iterface after applying the new netmask.
Code:
ifconfig <interface> down
ifconfig <interface> up

Login or Register to Ask a Question

Previous Thread | Next Thread

8 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't update the default gateway

Hi, I have server that I change its network configuration from using DHCP to using static IP. I have edited the file /etc/sysconfig/network-scripts/ifcfg-eth0 To: BOOTPROTO=STATIC IPADDR=xxx.xxx.xxx.xxx NETMASK=255.255.255.0 GATEWAY=yyy.yyy.yyy.yyy I did /etc/init.d/network... (2 Replies)
Discussion started by: programAngel
2 Replies

5. Solaris

Does changing default password parms affect existing accounts in /etc/shadow?

Are the default password setting parameters (that are in /etc/login.defs) only used when a new local account is created on a server? It looks to me like a 'useradd userid1' command will look to the /etc/login.defs file to get default values for MINWEEKS MAXWEEKS and PASSLENGTH. If the parms are... (2 Replies)
Discussion started by: msdjunk
2 Replies

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

7. AIX

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... (7 Replies)
Discussion started by: bbbngowc
7 Replies

8. Shell Programming and Scripting

affect variable

hi , i want to store variable but i get always error when i excute this command ligne : var = awk '{print $1}' file1 echo $var how can i store the var? thanks (7 Replies)
Discussion started by: kamel.seg
7 Replies
Login or Register to Ask a Question