LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-21-2010, 11:36 AM   #1
ksdmnv
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0
After Solaris 10 install, Realtek 8168 NIC not detected - noob help


Hi,

I downloaded / installed latest Solaris 10 (x86) - curiously, I didn't get the Network Connectivity window during the install setup process (why?)

Seems the install has not detected / setup any network device for my Realtek 8168 on-board (Asus P6TSE) NIC.

ifconfig -a confirms this as all I have is the lo0 localhost.

prtconf -pv does however list the device - identified by its pci vendor/device ids.

I expected the install process to have created a device for the NIC and asked me whether I wanted to use DHCP / static addressing etc - why didn't that happen?

The RealTek site doesn't have a specific Solaris driver, however this http://opensolaris.org/jive/thread.j...ssageID=255898 lead me to think that it should be ok on Solaris?

Any suggestions please?
 
Old 06-21-2010, 03:44 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You should start by running the Sun Device Detection Tool to figure out if a driver exists for Solaris 10 and if it is bundled or not:
http://www.sun.com/bigadmin/hcl/hcts/device_detect.jsp

The installer didn't prompt you for network settings so I would assume no driver exists out of the box. You might be luckier with OpenSolaris which has more drivers than Solaris 10.
 
Old 06-22-2010, 07:15 AM   #3
ksdmnv
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Original Poster
Rep: Reputation: 0
it's working - sort of...

Hi,

My NIC isn't listed on the HCL (what is ;-)) but I've found a driver that works. The problem I now have is that

1) browser only works with actual ip address, so DNS not working
2) device is 'unplumbed' after reboot - how can I make this permanent?

I tried created a /etc/MARKUNIX.gani0 file containing "gani0" as I thought this was supposed to do the plumbing during the boot. (Not convinced contents correct here...)

Below is a log of what I've done and the boot messages related to the NIC.

Any ideas how to configure this properly with dhcp. (I'd rather not try sys-unconfig as I tried that and it wouldn't boot after that!)

Thanks

********** LOG ****************


# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000


# /usr/ccs/bin/make install
/usr/sbin/install -f /kernel/drv -m 755 -u root -g sys i386/gani
new owner is root
i386/gani installed as /kernel/drv/gani
/usr/sbin/install -f /kernel/drv/amd64 -m 755 -u root -g sys amd64/gani
new owner is root
amd64/gani installed as /kernel/drv/amd64/gani
cp /etc/system /etc/system.nogani
echo "exclude: gani" >> /etc/system.nogani
#
# ./adddrv.sh
rge "pci10ec,8169"


exit status = 0
System configuration files modified but gani driver not loaded or attached.
Driver (gani) installed.
#
# devfsadm -i gani
#
# more /etc/defaultrouter
192.168.1.254

# ifconfig gani0 plumb
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
gani0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 0.0.0.0 netmask 0
ether 0:xx:xx:xx:xx:ea


# ifconfig gani0 dhcp start
#
# touch /etc/dhcp.gani0
#
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
gani0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 192.168.1.66 netmask ffffff00 broadcast 192.168.1.255
ether 0:xx:xx:xx:xx:ea


# ifconfig gani0 up
# netstat -r

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.1.254 UG 1 0 gani0
192.168.1.0 192.168.1.66 U 1 0 gani0
224.0.0.0 localhost U 1 0 lo0
localhost localhost UH 9 584 lo0

# ping www.google.com
ping: unknown host www.google.com
# ping 66.102.9.104
66.102.9.104 is alive

# more /etc/resolv.conf

nameserver 87.194.255.155
nameserver 87.194.255.154


***** REBOOTED *****
(next lines from /var/adm/messages)
Jun 22 12:38:46 MARKUNIX gani: [ID 217474 kern.info] gani0: ilr 0x0000010b
Jun 22 12:38:46 MARKUNIX gani: [ID 272576 kern.info] gani0: chip is RTL8168C/8111C rev.C rev:0x02 tcr:0x3f4000c0 pcie_cap:0x70 msi_cap:0x50
Jun 22 12:38:46 MARKUNIX gani: [ID 605823 kern.info] gani0: busclk:2, cfg2:0x1c
Jun 22 12:38:46 MARKUNIX gani: [ID 813759 kern.info] gani0: gani_reset_chip: called
Jun 22 12:38:46 MARKUNIX gani: [ID 813759 kern.info] gani0: gani_attach_chip: called
Jun 22 12:38:46 MARKUNIX gani: [ID 428966 kern.notice] addr:0 size:9f000
Jun 22 12:38:46 MARKUNIX gani: [ID 428966 kern.notice] addr:100000 size:bf680000
Jun 22 12:38:46 MARKUNIX gani: [ID 428966 kern.notice] addr:0 size:c0000000
Jun 22 12:38:46 MARKUNIX gani: [ID 428966 kern.notice] addr:0 size:9f000
Jun 22 12:38:46 MARKUNIX gani: [ID 428966 kern.notice] addr:100000 size:bf680000
Jun 22 12:38:46 MARKUNIX gani: [ID 428966 kern.notice] addr:0 size:c0000000
Jun 22 12:38:46 MARKUNIX gani: [ID 987196 kern.info] NOTICE: gani0: disable LSO (max_phys:0x1bfffffff, dma_hi:0xffffffff, dma_tx_align:0x1)
Jun 22 12:38:46 MARKUNIX gani: [ID 866554 kern.info] gani0: using internal/non-MII PHY(0x001cc912)
Jun 22 12:38:46 MARKUNIX gani: [ID 679413 kern.info] gani0: PHY control:1000<ANE>, status:796d<100_BASEX_FD,100_BASEX,10_BASE_FD,10_BASE,XSTATUS,MFPRMBLSUPR,ANDONE,CANAUTONEG,LINKUP,E XTENDED>, advert:1e1<100BASE_TX_FD,100BASE_TX,10BASE_T_FD,10BASE_T>, lpar:41e1<100BASE_TX_FD,100BASE_TX,10BASE_T_FD,10BASE_T>, exp:5<CANNXTPP,LPCANAN>
Jun 22 12:38:46 MARKUNIX gani: [ID 119377 kern.info] gani0: xstatus:3000<1000BASET_FD,1000BASET>
Jun 22 12:38:46 MARKUNIX gld: [ID 944156 kern.info] gani0: rtl816x nic driver v2.6.7: type "ether" mac address 0:xx:xx:xx:xx:ea
Jun 22 12:38:46 MARKUNIX pcie_pci: [ID 586369 kern.info] PCIE-device: pci1043,82c6@0, gani0
Jun 22 12:38:46 MARKUNIX genunix: [ID 936769 kern.info] gani0 is /pci@0,0/pci8086,3a44@1c,2/pci1043,82c6@0
Jun 22 12:38:46 MARKUNIX gani: [ID 716252 kern.info] gani0: resetting PHY
Jun 22 12:38:46 MARKUNIX gani: [ID 813759 kern.info] gani0: gani_init_chip: called
Jun 22 12:38:46 MARKUNIX gani: [ID 813759 kern.info] gani0: gani_init_8168: called
Jun 22 12:38:46 MARKUNIX gani: [ID 353514 kern.info] gani0: RMS 1523
Jun 22 12:38:46 MARKUNIX gani: [ID 563436 kern.info] gani0: gani_init_8168: rcr:c700<128INT,FET_MULTI>, tcr:3f4007c0
Jun 22 12:38:46 MARKUNIX gani: [ID 827121 kern.info] gani0: gani_init_8168: devcsr:0x102017
Jun 22 12:38:46 MARKUNIX gani: [ID 813759 kern.info] gani0: gani_stop_chip: called
Jun 22 12:38:46 MARKUNIX gani: [ID 813759 kern.info] gani0: gani_reset_chip: called
Jun 22 12:38:46 MARKUNIX /sbin/dhcpagent[48]: [ID 329931 daemon.error] insert_pif: SIOCGLIFINDEX for gani0: No such device or address
Jun 22 12:38:48 MARKUNIX gani: [ID 831844 kern.info] gani0: auto-negotiation started
Jun 22 12:38:50 MARKUNIX gani: [ID 843631 kern.info] gani0: auto-negotiation done, status:796d<100_BASEX_FD,100_BASEX,10_BASE_FD,10_BASE,XSTATUS,MFPRMBLSUPR,ANDONE,CANAUTONEG,LINKUP,E XTENDED>, advert:1e1<100BASE_TX_FD,100BASE_TX,10BASE_T_FD,10BASE_T>, lpable:41e1<100BASE_TX_FD,100BASE_TX,10BASE_T_FD,10BASE_T>, exp:7<CANNXTPP,PAGERCVD,LPCANAN>
Jun 22 12:38:50 MARKUNIX gani: [ID 479110 kern.info] MII_1000TC:300<FULL,HALF>, MII_1000TS:0
Jun 22 12:38:50 MARKUNIX gani: [ID 103695 kern.info] gani0: Link up: 100 Mbps full duplex without flow control
 
Old 06-22-2010, 07:59 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If you want a static IP configuration, remove /etc/dhcp.gani0 and create a file named hostname.gani0 ( not MARKUNIX.gani0 ! ) containing the IP address wanted.

If you want DHCP to configure your network, remove /etc/hostname.gani0 if it exists and touch /etc/dhcp.gani0. It seems you did that though. After a reboot, the interface should be correctly configured. The insert_pif error you got might be related or not. Anyway, what is likely missing in your configuration is enabling DNS for name resolution. This is done by editing /etc/nsswitch.conf and adding dns after files in the "hosts: files" line.

An off-topic comment: while not mandatory, Unix hostnames are usually written in lowercase only. This is unrelated to your particular networking problem.
 
Old 06-22-2010, 09:35 AM   #5
ksdmnv
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Original Poster
Rep: Reputation: 0
eureka - it works

Thanks jlliagre

Adding the dns to /etc/nsswitch.conf fixed the dns issue.

Initially I was still losing the gani0 plumbing on reboot, however once I created an empty /etc/hostname.gani0 file (still using dhcp), the NIC got plumbed in at boot time. (see http://solaris-x86.org/documents/gui...terfaces.mhtml)

insert_pif error gone also

for any other Realtek 8168 owners the Solaris 10 driver I got from http://homepage2.nifty.com/mrym3/taiyodo/eng/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Realtek 8139/8168 Ethernet drivers? melchizedec Linux - Hardware 1 02-09-2010 03:59 AM
Realtek 8168/8111B lan card not detected in linux Mrugesh Red Hat 1 08-14-2009 04:56 AM
Realtek 8111/8168 LAN Driver will not install on RHEL4.5 Astol Linux - Networking 6 05-08-2008 11:36 AM
No network detected, Realtek 8111/8168 issue jio23 Linux - Networking 20 04-20-2008 12:48 AM
Realtek NIC (eth0 interface)not detected!! shady_Dev Linux - Hardware 2 06-26-2007 02:43 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration