[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Multiple Network Cards and PXE



On Mon, 13 Jan 2003, Warren Togami wrote:

> > eth0 Internet interface
> > eth1 192.168.0.1/28 (12 clients)

Note that this is a netmask of 255.255.255.240
and set that interface's DHCP stanza to serve:

shared-network eth1net {
        subnet  192.168.0.0 netmask 255.255.255.240 {
            option domain-name "victim.lan";
            option domain-name-servers 192.168.0.1;
            option routers 192.168.0.1;
            range 192.168.0.2 192.168.0.14;
#
	server-identifier eth1net.victim.lan ;
	allow booting;
	allow bootp;
	option option-128 code 128 = string;
	option option-129 code 129 = text;
	option root-path        "192.168.0.1:/opt/rhl81/i386";
# trick from Peter Rundle <peter rundle au interpath net>
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
        filename      "/rhl81/pxe/pxelinux.bin";
# NOTE: kernels are specified in  /tftpboot/rh181/pxe/pxelinux.cfg
	        } else {
        filename    "/rh181/vmlinuz-2.4.18-ltsp";  
		}
        }
	next-server 192.168.0.1 ;
}

#########################################################

> > eth2 192.168.0.17/28 (12 clients)

Note that this is a netmask of 255.255.255.240
and set that interface's DHCP stanza to serve:

shared-network eth2net {
        subnet  192.168.0.16 netmask 255.255.255.240 {
            option domain-name "victim.lan";
            option domain-name-servers 192.168.0.17;
            option routers 192.168.0.17;
            range 192.168.0.18 192.168.0.30;
#
        server-identifier eth2net.victim.lan ;
        allow booting;
        allow bootp;
        option option-128 code 128 = string;
        option option-129 code 129 = text;
        option root-path        "192.168.0.17:/opt/ltsp/i386";
# trick from Peter Rundle <peter rundle au interpath net>
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
        filename      "/ltsp/pxe/pxelinux.bin";
# NOTE: kernels are specified in  /tftpboot/ltsp/pxe/pxelinux.cfg
	        } else {
        filename    "/ltsp/vmlinuz-2.4.18-ltsp";  
		}
        }
        next-server 192.168.0.17 ;
}

#####################################################

> > Enabling dhcpd and tftp of PXE and kernel through eth1 was easy, but I 
> > can't seem to figure out how to enable the same on eth2.
> > 
> > What is the proper way to do this?


I have renumbered and set proper netmasks for the two
interfaces.  The tftp server has to be listening on interfaces
eth1 and eth2 [xinetd does this by default for atftp]:

[herrold ftp xinetd.d]$ netstat -a | grep tftp
udp        0      0 *:tftp                  *:*

The ifconfig and dhcp subnetting of the /28 networks can
co-exist on a physical segment, or better, be segregated for 
performance reasons and to avoid 'martian' reports by 
arpwatch.

The example will serve rhl81 beta testing images out on eth1
from /tftpboot/ltsp/rhl81/ , and ltsp workstations on eth2
from /tftpboot/ltsp/pxe/

Untested, but should work -- the {} matching should be 
correct.  lemme know.

-- Russ Herrold





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]