hi,
I have recently switched from a RH and XP dual boot system to a complete installation of slackware. Why? Well thats a story for another day. Anyway, I have two NICs, one for my cable modem (which works fine) and one for a cross over cable for my flat mate so he can share my internet connection. On installation Slackware picked up the cable modem NIC on eth0 and prompted me to configure it with netconfig. Once completed eth0 works fine. However, the installation did not detect the second network card. After browsing the internet for solutions I have managed to get the second NIC detected by doing the following:
Adding "alias eth1 ne" to /etc/modules.conf
Configuring the eth1 section of /etc/rc.d/rc.inet1 to include my local network IP settings in this way:
# Edit these values to set up your second Ethernet card (eth1),
# if you have one. Otherwise leave it configured to 127.0.0.1,
# or comment it out, and it will be ignored at boot.
IPADDR2="192.168.0.1" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth1 using DHCP:
#USE_DHCP2=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME2="CCHOSTNUM-A
following these changes I rebooted and ifconfig now shows eth1:
eth0 Link encap:Ethernet HWaddr 00:50:BF
8:AE:32
inet addr:81.107.157.9 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5525 errors:0 dropped:0 overruns:0 frame:0
TX packets:502 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:639165 (624.1 Kb) TX bytes:90866 (88.7 Kb)
Interrupt:9 Base address:0x6000
eth1 Link encap:Ethernet HWaddr 00:40:05:73:09
8
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:9804 (9.5 Kb) TX bytes:0 (0.0 b)
Interrupt:5 Base address:0x240
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)
now its been detected and appears to display the right settings Im not sure how to configure properly for the internet connection sharing. Ive tried to use netconfig to configure eth1 but this seems to reconfigure eth0 every time its run.
Whats the next course of action? Or is there any slackware home networking how tos or resources available? Ive used the redhat one sucessfully in the past but the instructions in this howto are not generic.
Any help would be very appreciated particularly by my housemate who is currently internet connectionless!
Cheers
Campo