Re: Help - I've screwed up the my internet access - can't ping router.
- From: chocolatemalt <me@xxxxxxxxxxxxxx>
- Date: Sun, 22 Mar 2009 09:48:46 -0600
In article <49c521c4@xxxxxxxxxxxxx>, Dave <foo@xxxxxxx> wrote:
I've got a Blade 2000 which has been running Solaris 10 update 6 for
some time. It's a home computer, on a ADSL line using Onetel as an ISP.
All has worked well. It was PREVIOSULY configured as:
1) Static IP of 192.168.2.15
2) Default route of 192.168.2.1
3) DNS servers listed in /etc/resolv.conf
4) Contents of /etc/nswwitch.dns copied to /etc/nsswitch.conf
A few days back my modem/router failed, so I bought another, which made
it sensible to change the IP address of the Sun, from a 192.168.2.x to a
192.168.1.x.
Rather than use sys-unconfig, I decided to edit the files manually that
are listed in the sys-unconfig man page. Then I used
# svcs disable network
# svcs enable network
The networking was not working properly, so I rebooted, thinking that
would cure it.
When I rebooted, the networking was still not working correctly, so I
decided to use sys-unconfig. However, even after running 'sys-unconfig'
and the system reboot, there is no internet access.
I don't really have a clue how to sort it out. If anyone has any
suggestions, please do. If all else fails I'll reinstall Solaris, but
that should not be necessary.
I've got two very similar machines (ones a Blade 2000, the other an
Ultra 60). Both run Solaris 10 update 6, both are connected into the
same switch, which should get the internet from the same router. So
anything that works one one Sun should work on the others. But somehow I
have managed to mess things up, so they are not working on one of them -
but work fine on the other.
Basically set this up as
# head /etc/inet/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.1.9 kestrel loghost kestrel.drkirkby.co.uk
# cat /etc/defaultroute
192.168.1.1
# cat /etc/resolv.conf
nameserver 212.67.120.148
nameserver 212.67.96.129
/etc/nsswitch.conf is just a copy of /etc/nsswitch.dns - hence checksums
of files are the same.
# cksum /etc/nsswitch.conf /etc/nsswitch.dns
3949146177 1259 /etc/nsswitch.conf
3949146177 1259 /etc/nsswitch.dns
If I try to ping the router, it can't be seen.
bash-3.00$ ping 192.168.1.1
no answer from 192.168.1.1
If I attempt to connect via ssh to another machine on the *local*
network, so it works.
bash-3.00$ ssh don@xxxxxxxxxxxx
Password:
Last login: Fri Mar 20 17:33:46 2009 from 192.168.2.9
I believe the router is answering pings ok, as I can ping it when on the
other Sun
# ping 192.168.1.1
192.168.1.1 is alive
So in summary
1) Two very similar machines, both on the same switch and connected to
the same router
2) One can ping the router, the other can't
3) Both can connect to each other by IP address
Any thoughts?
As a sanity check on your config, try:
# egrep <hostname> /etc/inet/hosts /etc/hostname* /etc/nodename
# cat /etc/defaultrouter
# netstat -nr
# ifconfig -a
It helps to have all that info in a single view so that simple mistakes
will be obvious. In particular, verify the netmasks on your interfaces
and the expected entries in the routing table.
If all that checks out, make a note of the MAC addresses on your
interfaces on both Sun machines via ifconfig. Use "arp -a" on each
machine to verify that the IP addresses you ping are indeed
corresponding to the right MACs and not something else in conflict. Use
the same arp command to ensure the router is on the expected IP. This
decoder site http://www.techzoom.net/lookup/check-mac.en may be helpful.
If again all that checks out, and cables and ports on the switch have
been swapped to no avail, you may have MAC address locking on your
router. Some ISPs do that to restrict their lowest-tier "home" users to
a single client connection, and a power cycle of the modem is required
before it will accept a fresh MAC address. However this seems unlikely
if you bought the device from a third party.
.
- References:
- Prev by Date: Re: Why does sys-unconfig want addresses for DNS servers when configuring DHCP?
- Next by Date: Re: How to install CD#2 after CD#5 Solaris 10 10/08
- Previous by thread: Re: Help - I've screwed up the my internet access - can't ping router.
- Next by thread: Re: Help - I've screwed up the my internet access - can't ping router.
- Index(es):
Relevant Pages
|