[wellylug] Configuring a WiFi & Cable home network

Lindsay Hunter lindsay at csw.co.nz
Wed Dec 24 16:48:45 NZDT 2008


Is the dhcpd starting on reboot?

Lindsay

Adam Bogacki wrote:
> Hi,  I have the internet cable running to a XH9948 DSE WLAB 802.11g
> 4-port router
> feeding one WiFi  and one cable connection at home.
>
> I have a static account with www.paradise.net.nz.
>
> My  desktop has a statically configured card (eth0) to which the cable
> previously
> connected, and a dynamically configured card (eth1) which I intend to
> use with the router.
>
> Both cards are recognised by "ifconfig -a"
>
>   
>>> eth0   Link encap:Ethernet  HWaddr 00:a0:cc:d9:e2:48  
>>>           inet addr:202.78.148.174  Bcast:202.78.148.255
>>> Mask:255.255.255.0
>>>           inet6 addr: fe80::2a0:ccff:fed9:e248/64 Scope:Link
>>>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>           RX packets:99321 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:41497 errors:200 dropped:0 overruns:0 carrier:400
>>>           collisions:0 txqueuelen:1000
>>>           RX bytes:53667177 (51.1 MiB)  TX bytes:5491544 (5.2 MiB)
>>>           Interrupt:11 Base address:0xa400
>>>
>>> eth1   Link encap:Ethernet  HWaddr 00:a0:cc:d9:c7:6f  
>>>           inet addr:192.168.0.10  Bcast:192.168.0.255
>>>       
> Mask:255.255.255.0
>   
>>>           UP BROADCAST RUNNING MULTICAST  MTU:576  Metric:1
>>>           RX packets:5953 errors:2 dropped:0 overruns:0 frame:0
>>>           TX packets:7046 errors:3 dropped:0 overruns:0 carrier:3
>>>           collisions:0 txqueuelen:1000
>>>           RX bytes:1846717 (1.7 MiB)  TX bytes:809461 (790.4 KiB)
>>>           Interrupt:10 Base address:0xc000
>>>       
>
> My /etc/dhcpd.conf file is
>
>   
>>> default-lease-time 600;
>>> max-lease-time 7200;
>>> one-lease-per-client false;
>>> allow bootp;
>>> option domain-name "paradise.net.nz";
>>> option domain-name-servers 203.96.152.4, 203.96.152.12;
>>>
>>> subnet 10.152.187.0 netmask 255.255.255.0 {
>>> }
>>> subnet 192.168.0.0 netmask 255.255.255.0 {
>>>   range 192.168.0.10 192.168.0.100;
>>>   option routers rtr-239-0-1.paradise.net.nz,
>>>       
> rtr-239-0-2.paradise.net.nz;
>   
>>> }
>>>       
>
> My /etc/network/interfaces is
>
>   
>>> auto lo
>>> iface lo inet loopback
>>>         
>>> # The primary network interface
>>>         
>>> ifup --allow=hotplug eth0 eth1
>>> iface eth0 inet static
>>>         address 202.78.148.174
>>>         network 202.78.148.0
>>>         netmask 255.255.255.0
>>>         broadcast 202.78.148.255
>>>         gateway 202.78.148.1
>>>         dns-search paradise.net.nz
>>>         dns-nameservers 203.96.152.4 203.96.152.12
>>> # The secondary, local network, interface for my box.
>>> allow-hotplug eth1
>>> auto eth1
>>> iface eth1 inet dhcp
>>>        address 192.168.0.10
>>>        netmask 255.255.255.0
>>>        network 192.168.0.0
>>>        broadcast 192.168.0.255
>>>        gateway 192.168.0.1
>>>        wireless_essid XXXXX
>>>        wireless mode managed
>>> #      wireless_nick   
>>> #      wireless_key     XXXXXXXXXXXXXXXXX
>>> #      wireless_keymode open
>>> #      wireless_mode managed
>>>
>>> auto eth0
>>>       
>
> WiFi is no problem.
>
> I have had eth1 working together with WiFi using
> a combination of
>
> route add 255.255.255.0 dev eth1
> dhcpd start eth1
> [or "service dhcpd start"]
>
> but on reboot it does not work.
>
> What am I missing here ?
>
> Cheers,
>
> Adam Bogacki,
> afb at paradise.net.nz
>
>
>
>
>
>   



More information about the wellylug mailing list