Hello all,

  I've recently configured my Intel NIC card manually (i.e. without
NWAM, without DHCP and with a chosen IP address), and all seemed to be
working fine until I tried to reach an external host. I followed the
instructions in the OpenSolaris Bible, and it worked when I had DHCP
(but no NWAM), then the box went headless (it's a homemade NAS) and I
decided to remove DHCP altogether. I didn't notice it stopped working
at first, as I could reach any part of the home network without any
trouble. Then I recently 'pkg search'ed something, and that's when I
realised the NAS couldn't reach the Internet :

l...@opensolaris:~$ pkg publisher
PUBLISHER                             TYPE     STATUS   URI
dev.opensolaris.org      (preferred)  origin   online
http://pkg.opensolaris.org/dev/
opensolaris.org                       origin   online
http://pkg.opensolaris.org/release/

l...@opensolaris:~$ pkg search -r whatever
pkg: Unable to contact valid package server
Encountered the following error(s):
Unable to contact any configured publishers. This is likely a network
configuration problem.

  The strange thing is, I can totally make DNS queries, which I
thought were the broken part in my configuration :

l...@opensolaris:~$ dig pkg.opensolaris.org

; <<>> DiG 9.6.1-P1 <<>> pkg.opensolaris.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 389
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;pkg.opensolaris.org.           IN      A

;; ANSWER SECTION:
pkg.opensolaris.org.    84789   IN      A       72.5.123.21

;; Query time: 49 msec
;; SERVER: 208.67.222.222#53(208.67.222.222)
;; WHEN: Thu Nov 19 19:29:04 2009
;; MSG SIZE  rcvd: 53

  From my very basic knowledge of all things networking, this is a
total mystery and I must have overlooked something. Here's some
details about my home network setup (really common stuff) and the
steps I took to manually configure the OpenSolaris box :

* 2 computers :
  - 1 Windows/Linux machine (my main desktop) at 192.168.1.20;
  - 1 NAS running OpenSolaris at 192.168.1.30;
* 1 DSL modem/router at 192.168.1.1;
* Both computers are connected to the modem through a 1Gbit switch.

  As I said, everything works fine in the LAN :

l...@opensolaris:~$ ping 192.168.1.20
192.168.1.20 is alive
l...@opensolaris:~$ ping 192.168.1.1
192.168.1.1 is alive

  And here's the manual network configuration I made :

l...@opensolaris:~$ cat /etc/hostname.e1000g0
192.168.1.30/24
l...@opensolaris:~$ cat /etc/resolv.conf
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 192.168.1.1
l...@opensolaris:~$ cat /etc/defaultrouter
192.168.1.1

  All of this results in :

l...@opensolaris:~$ ifconfig e1000g0
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.1.30 netmask ffffff00 broadcast 192.168.1.255

l...@opensolaris:~$ netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              192.168.1.1          UG        1        946
192.168.1.0          192.168.1.30         U         1       9117 e1000g0
127.0.0.1            127.0.0.1            UH        1        954 lo0

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If
--------------------------- --------------------------- ----- --- ------- -----
::1                         ::1                         UH      1       0 lo0

  I had to add the '/etc/defaultrouter' info when I couldn't reach any
part of the LAN, and it worked well with DHCP, I could browse, ping,
curl, whatever any resource. But after DHCP was deactivated, no
Internet for me. I noticed the first line in the netstat output has no
interface associated, is this what I'm missing ? If so, how do I
configure the default router to be used with e1000g0 ? And if not,
well... what is it I'm missing ?

  The box is alive and responsive, I can definitely SSH to it so don't
mind asking for some other info if you need them. In the meantime,
thanks a lot for the help.

-- Laurent
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to