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.10 17 Aug 2004 defaultrouter(4)
Hi
I have had to change the defaultrouter of a production server. I have ammended /etc/defaultrouter to point to the new address but when I do a netstat -rn , it hasnt updated. Is there anyway I can apply this change without rebooting the system ??
regards (3 Replies)
Hello all,
Let me preface this note by expressing my thanks to anyone that can help.
I have cable modem access to the internet and a D-Link router (which is also running DHCP) for multiple machine access. I have 3 windows machines running XP Pro and '98 working OK and able to access... (3 Replies)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
I even don't dare to ask for a hint, but as I am looking for clues may someone can help me, though reading me bsd handbook. It is about one machine running as media play studio with a debian distro and one machine running bsd 10.2 connected to one router.
By booting first the debian machine it... (4 Replies)
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)