Default Gateway


 
Thread Tools Search this Thread
Special Forums IP Networking Default Gateway
# 1  
Old 10-01-2016
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

Last edited by Meow613; 10-01-2016 at 11:27 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

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

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

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

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

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
Login or Register to Ask a Question
route(8c)																 route(8c)

Name
       route - manually manipulate the routing tables

Syntax
       /etc/route [ -f ] [ -n ] command args ]

Description
       The  program  is  used  to manipulate the network routing tables manually.  However, normally it is not needed, as the system routing table
       management daemon, should tend to this task.

       The program accepts two commands: add, to add a route and delete, to delete a route.

       All commands have the following syntax:

	    /etc/route command [ net | host ] destination gateway [ metric ]

       In this syntax, destination is a host or network for which the route is to, gateway is the gateway to which packets  should  be	addressed,
       and  metric  is	an  optional count indicating the number of hops to the destination.  The metric is required for add commands.	It must be
       zero if the destination is on a directly-attached network, and nonzero if the route utilizes one or more gateways.

       When adding a route with metric 0, the gateway given is the address of this host on the common network, indicating the interface to be used
       for  transmission.   Routes to a particular host are distinguished from routes to a network by interpreting the Internet address associated
       with destination.  The optional keywords net and host force the destination to be interpreted as a network or host, respectively.   If  the
       destination  has  a local address part of INADDR_ANY, then the route is assumed to be to a network. Otherwise, it is presumed to be a route
       to a host.  If the route is to a destination connected via a gateway, the metric should be greater than 0.  All	symbolic  names  specified
       for a destination or gateway are looked up first as a host name using If this lookup fails, is then used to interpret the name as that of a
       network.

       The command uses a raw socket and the SIOCADDRT and SIOCDELRT ioctls to do its work.  As such, only the superuser can  modify  the  routing
       tables.

Options
       -f   Flushes  the routing tables of all gateway entries.  If is used with one of the commands described above, the tables are flushed prior
	    to the command's application.

       -n   Prevents attempts to print host and network names symbolically when reporting actions.

Restrictions
       The change operation is not implemented.  Therefore, you should first add the new route, and then delete the old one.

Diagnostics
       add [host | network] %s: gateway %s flags %x"
       The specified route is being added to the tables.  The values printed are from the routing table entry supplied in the ioctl call.  If  the
       gateway	address  used  was not the primary address of the gateway (the first one returned by the gateway address is printed numerically as
       well as symbolically.

       delete [ host | network] %s: gateway %s flags %x
       The specified route is being deleted from the tables.  The values printed are from the routing table entry supplied in the ioctl call.	If
       the  gateway  address used was not the primary address of the gateway (the first one returned by the gateway address is printed numerically
       as well as symbolically.

       %s %s done
       When the flag is specified, each routing table entry that is deleted is indicated with a message of this form.

       Network is unreachable
       An attempt to add a route failed because the gateway listed was not on a directly-connected network.  The next-hop gateway must be given.

       not in table
       A delete operation was attempted for an entry which was not present in the tables.

       routing table overflow
       An add operation was attempted, but the system was low on resources and was unable to allocate memory to create the new entry.

See Also
       intro(4n), routed(8c)

																	 route(8c)