Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

defaultrouter(4) [osx man page]

defaultrouter(4)						   File Formats 						  defaultrouter(4)

NAME
defaultrouter - configuration file for default router(s) SYNOPSIS
/etc/defaultrouter DESCRIPTION
The /etc/defaultrouter file specifies a IPv4 host's default router(s). The format of the file is as follows: IP_address ... The /etc/defaultrouter file can contain the IP addresses or hostnames of one or more default routers, with each entry on its own line. If you use hostnames, each hostname must also be listed in the local /etc/hosts file, because no name services are running at the time that defaultrouter is read. Lines beginning with the ``#'' character are treated as comments. The default routes listed in this file replace those added by the kernel during diskless booting. An empty /etc/defaultrouter file will cause the default route added by the kernel to be deleted. Use of a default route, whether received from a DHCP server or from /etc/defaultrouter, prevents a machine from acting as an IPv4 router. You can use routeadm(1M) to override this behavior. FILES
/etc/defaultrouter Configuration file containing the hostnames or IP addresses of one or more default routers. SEE ALSO
in.rdisc(1M), in.routed(1M), routeadm(1M), hosts(4) SunOS 5.10 17 Aug 2004 defaultrouter(4)

Check Out this Related Man Page

defaultrouter(4)						   File Formats 						  defaultrouter(4)

NAME
defaultrouter - configuration file for default router(s) SYNOPSIS
/etc/defaultrouter DESCRIPTION
The /etc/defaultrouter file specifies a IPv4 host's default router(s). The format of the file is as follows: IP_address ... The /etc/defaultrouter file can contain the IP addresses or hostnames of one or more default routers, with each entry on its own line. If you use hostnames, each hostname must also be listed in the local /etc/hosts file, because no name services are running at the time that defaultrouter is read. Lines beginning with the ``#'' character are treated as comments. The default routes listed in this file replace those added by the kernel during diskless booting. An empty /etc/defaultrouter file will cause the default route added by the kernel to be deleted. Use of a default route, whether received from a DHCP server or from /etc/defaultrouter, prevents a machine from acting as an IPv4 router. You can use routeadm(1M) to override this behavior. FILES
/etc/defaultrouter Configuration file containing the hostnames or IP addresses of one or more default routers. SEE ALSO
in.rdisc(1M), in.routed(1M), routeadm(1M), hosts(4) SunOS 5.11 17 Aug 2004 defaultrouter(4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

local host setup

I am running Redhat 7.2. I am using a router with dhcp setup for my computer. When logging in, I get the error "dhcppc1 not found". My router assigned that host name to my pc for dhcp. It says to modify the /etc/hosts file to keep from having any problems. Everything seems to be working ok... (2 Replies)
Discussion started by: jeremiebarber
2 Replies

2. IP Networking

two routers

It is possible to connect wireless router that has 4 ethernet connections and WAN connection with regular router that has UPLINK and WAN and 4 ethernet ports? (9 Replies)
Discussion started by: kasia
9 Replies

3. Solaris

network setup

on sparc solairs 2.8 which files i need to configure for network setup: /etc/hosts /etc/defaultrouter /etc/netmasks /et/resolv.conf what els?. by the way, how do i configure for rsh?. like for doing "rsh remotehostname date"?. (2 Replies)
Discussion started by: S26+
2 Replies

4. Solaris

adding routes in Solaris

Solaris Guru's What is the proper way to add routes in the routing table so after a node reboot the routes will not be lost. I understand the /etc/defaultrouter for the default router and the <route add> command but using this command routes will be removed once the node reboots. Thanks (7 Replies)
Discussion started by: Brad_52000
7 Replies

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

6. Solaris

Defaultrouter not changing !!

Hi experts I have to change the default router of some system I tried changing by deleing the existing route by following line #route delete default 172.24.2.101 then I added executed the below line to add the new router #route add default 172.24.1.254 ... (9 Replies)
Discussion started by: kumarmani
9 Replies

7. Solaris

solaris 10 u5 what happens if no default route configured

Hi, I am new to solaris 10. What is the procedure the os takes if a default route is not configured? I am using a multihomed server with 4 interfaces. It looked strange to me this morning, because i had not defined a default route it defaulted to making one up, with the ip address of another... (9 Replies)
Discussion started by: borderblaster
9 Replies

8. Solaris

Gateway

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? (5 Replies)
Discussion started by: SmartAntz
5 Replies

9. Solaris

Change gateway without reboot server

Hi Gurus Recently i had change the gateway for a server i had change the IP in the /etc/defaultrouter and run the below command # route add default 10.86.33.222 # route delete default 10.86.33.1 # netstat -rn Routing Table: IPv4 Destination Gateway Flags Ref ... (2 Replies)
Discussion started by: SmartAntz
2 Replies

10. UNIX for Dummies Questions & Answers

defaultrouter permissions

Ok ... I've relocated a SUN box and I've managed to change all of the IP addressess successfully ... both the local IP addresses and those that the box needs to connect to remotely. I was able to get the box to accept the default router's IP address using the command "route add default... (3 Replies)
Discussion started by: ahays
3 Replies

11. Solaris

Default route is configured, but seem to not work

Hiya, I got the default gateway set in /etc/defaultrouter file, however "netstat -nr" doesn't show anything like "default" in the routing table. As far as I know "netstat" on Solaris 10 u7 should show something like : Routing Table: IPv4 Destination Gateway Flags Ref ... (8 Replies)
Discussion started by: TomSu
8 Replies

12. Solaris

configure zones to have different network interface and network

i need to configure a zone to use different interface (bge2) than global and have connected to completely different network switch & to use its own defaultrouter and hosts file .. is it possible ..if so ..how ? Thanks (9 Replies)
Discussion started by: skamal4u
9 Replies

13. Red Hat

How to route multiple IP addresses with IPTABLE command?

Hi, We have a router and devices for testing. We route devices with below command iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport 80 -s 10.111.111.22 -j DNAT --to-destination 10.13.0.16:3128 where 10.111.111.22 is device IP. and 10.13.0.16 is our Linux box machine. Likewise we... (4 Replies)
Discussion started by: Dhruvak
4 Replies

14. IP Networking

Static route on router

Hi all, This may be the basic question of Routing but I am a sort of new to networking so I am asking. Do I need to put route for my router's LAN port ip to WAN (serial) port ip Or the router itself can communicate between its ports without routes. lan (172.26.40.5) ... (3 Replies)
Discussion started by: dextergenious
3 Replies

15. Shell Programming and Scripting

Check for valid hostnames

Hello, I am trying to develop a script to check for valid hostnames. Below are the prerequisites for a valid hostname which I got from wiki : Hostnames are composed of series of labels concatenated with dots, as are all domain names. For example, "en.wikipedia.org" is a hostname. Each label... (8 Replies)
Discussion started by: rahul2662
8 Replies