Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

defaultrouter(4) [v7 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

Location of defaultrouter file in Red Hat

Where is the file containing the default router in Red Hat 7.0? (4 Replies)
Discussion started by: 98_1LE
4 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. IP Networking

Accessing Solaris 8 over WAN

We can access our solaris 8 from our LAN . However when we try to access the same over our WAN , it is not able to ping the server . /etc/hosts has entries for our DNS server. Another thing all WAN clients are Windows 2000 workstations . Here is the output netstat -nr Routing Table: IPv4... (7 Replies)
Discussion started by: Hitesh Shah
7 Replies

4. IP Networking

DHCP and Hostnames

I have a linksys DSL router. I run a mixed environment of Windows, Linux and Solaris. The routers dhcp tables show the windows machines hostnames and associated IP's ok but the unix bases mahines don't have associated hostnames in the DHCP tables. I can ping by IP but not my the machines... (5 Replies)
Discussion started by: mr16ga
5 Replies

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

6. UNIX for Dummies Questions & Answers

telneting into UNIX

I am attempting to set up port forwarding on my netgear DG834. I know I have everything set up perfectly in the router. However when I attempt to telnet into the unix machine through the router across the internet it will not. Connection times out after not connecting after a few minutes. I can... (9 Replies)
Discussion started by: jeffreydavisjr
9 Replies

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

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

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

10. Shell Programming and Scripting

Parameters passed to commands but not working in Bash shell

Hi, I am trying to do this thing useing my shell bash ( sorry for my english ) I have in a file 63 hostnames, i wanna ask to the DHCP admin, to reserv that reserves 63 IP addresses of this hosts, using their mac address. I have thinked this script: for ((i=1;i<63;i++)); do arp $(head... (10 Replies)
Discussion started by: Cypress
10 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 LINUX machine as a router.

Hi guys, could you help me to configure my Linux machine to behave as router? Scenario: Machine OS: CentOS 6.2 NIC: eth0: configured with a static IP by the ISP. eth1: not configured yet Virtual Machine: CentOS 5.7 NIC : eth0 : not configured yet eth1 : not configured yet... (8 Replies)
Discussion started by: saqlain.bashir
8 Replies

14. Programming

Reading a router configuration file

Hello C specialists, I'm trying to write a program to read out a binary configuration file produced by a router. But the output of Name and Value is cryptic. What's going wrong? The structure of the binary file is very simple: struct nvram_tuple { char *name; char *value; ... (5 Replies)
Discussion started by: digidax
5 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