Koozali.org: home of the SME Server

dhcp on 2nd internal nic--wlan--help

jmbak

dhcp on 2nd internal nic--wlan--help
« on: March 27, 2004, 01:34:54 AM »
Internal wireless network connect to 2nd nic (eth2) w/dhcp howto

Add Third network card

MY Network Setup;

NIC1-ETH0; 192.168.0.1 (LocalNetwork)
NIC2-ETH1; INTERNET(ExternalNetwork)
NIC3-ETH2; 10.0.0.1(LocalWirelessNetwork)

1.#/sbin/e-smith/config set EthernetDriver3 e100(your nic device driver-server setup console)

2.#mkdir -p /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ ifcfg-eth2

3. #cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-eth2

4. #pico /etc/sysconfig/network-scripts/ifcfg-eth2

added 2nd internal nic IP Address

DEVICE=eth2
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.0.0.1
NETMASK=255.255.255.0
NETWORK=10.0.0.0
BROADCAST=10.0.0.255

5. #/sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-eth2

6. #/sbin/e-smith/signal-event console-save

7. add the local network using server manager

Network 10.0.0.0
netmask 255.255.255.0
router 192.168.0.1

8..reboot system

9. Manually provide IPAddress for Workstation connected to 2nd Network card wireless AP. & filter your mac address@ wireless AP for security...

At this point everything seem to work fine.. Iam able to browse the internet & access files @ server with no problem..

I have tried to set dhcp on 2nd without success.. I keep getting error when I try to expand the dhcp.conf templates..

Please show me what I am doing wrong.. thank you

below is what I have tried for several days..

I need assistance to SET DHCP ON 2ND INTERNAL NETWORK (eth2)

10. create a template fragment for dhcpd.conf for eth2

#mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf
cd /etc/e-smith/templates-custom/etc/dhcpd.conf

subnet 10.0.0.0 netmask 255.255.255.0
{
range 10.0.0.100 10.0.0.254;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 192.168.100.1;
}


#/sbin/e-smith/expand-template /etc/dhcp.conf..... keeps getting error , unable complete



SET IT TO START AT BOOT TIME

11. #cp /service/dhcpd /service/dhcpd-eth2

12. ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S65dhcpd-eth2

13. /sbin/e-smith/db configuration setprop dhcpd-eth2 status enabled

14. /sbin/e-smith/signal-event console-save

15. /sbin/reboot

Chaloner Hale

Re: dhcp on 2nd internal nic--wlan--help
« Reply #1 on: March 31, 2004, 04:07:35 PM »
Does this 2nd nic setup work on SME 6.0?

Thanks,

Chaloner Hale

duncan