[SunHELP] Default gateway cannot be set
Lund, Dennis
sunhelp at sunhelp.org
Thu Dec 6 07:17:44 CST 2001
The best way to change this information is to use "sys-unconfig" this will
change almost everything. You will still have to set the default route in
/etc/defaultrouter (put IP in this file). Setup /etc/resolv.conf if using
DNS. Follow the steps below and you shouldn't have any problems:
How to configure a system to run on a network:
1. /etc/hosts
This file is used to resolve host name into IP
addresses. This file must be updated if no
naming service is being used.
This file should contain the IP and host name
of each system on the local network, including
any gateways or routers.
Example:
127.0.0.1 localhost
129.145.71.109 kishori loghost #this is the IP and host
#name for the local machine
129.145.71.110 sage #this is the IP and host
#name for a host on the network
2. #ifconfig -a
Be sure that both the loopback and network interface
are up and running.
Example:
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
le0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 129.145.71.109 netmask ffffff00 broadcast 129.145.71.255
If the interface to the network is not up and running do the
following:
#ifconfig le0 plumb
NOTE: The default may be hme0 (for most Ultra machines)
3. /etc/netmasks
This file should contain the netmasks. If you are using the
default netmasks and it appears in ifconfig -a, this file is
not necessary.
Example:
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
129.145.0.0 255.255.255.0
4. /etc/defaultrouter
If you want to define a default router include the router name in
this
file.
5. /etc/hostname.le0 or /etc/hostname.hme0 (depending on you interface
type)
This file should contain the name of the local host.
6. /etc/resolv.conf
If you are using dns this file should contain the
name of the domain and the IP address of the nameserver.
It is acceptable to list more than one nameserver (up to 4).
The nameservers will be consulted in the order listed.
Be careful this file is very sensitive to extra spaces and tabs.
Example:
domain support.Corp.Sun.Com
nameserver 129.150.254.2
7. /etc/nsswitch.conf
Check this file for the appropriate entries. If a naming
service is being used this file should reflect that.
8. It is a good idea to reboot the system at this point.
Check to see if the network is working by pinging other
machines both inside and outside of your network.
Dennis Lund
-----Original Message-----
From: Christopher Smiga [mailto:csmiga at yahoo.com]
Sent: Thursday, December 06, 2001 3:08 AM
To: sunhelp at sunhelp.org
Subject: RE: [SunHELP] Default gateway cannot be set
I usually leave the "loghost" value with the 127.0.0.1 (loopback) address.
Eve so, everything looks fine. Double check your IP address, subnet masks,
defaulter router, broadcast address, etc.
Christopher Smiga
-----Original Message-----
From: sunhelp-admin at sunhelp.org [mailto:sunhelp-admin at sunhelp.org]On Behalf
Of sugit at nttdata.co.jp
Sent: Thursday, December 06, 2001 2:38 AM
To: sunhelp at sunhelp.org
Subject: [SunHELP] Default gateway cannot be set
Hi
I am working on Ultra60 to join it into our developing embironment.
I changed ipaddress by
ifconfig hmeX 192.xxx.xxx.xxx netmask 255.x.x.x broadcast 192.xxx.xxx.xxx
ifconfig hmeX down
ifconfig hmeX up
I set hostname to Ultra60 by configuring
/etc/hosts/
192.xxx.xxx.xxx sample sample. loghost
/etc/hostname.hme0
sample
/etc/defaultrouter
192.xxx.xxx.xyz
After the configuration, I rebooted Ultra60.
While it was rebooted, the message ingicated the bad hostname and
defaultgateway has not been set.
Interface also lost the latest ipconfiguration.
I want to configure the network correctly.
If there are part that I am missing to do, plese tell me what is wrong.
Thanks
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.
More information about the SunHELP
mailing list