DHCP 설정 어떻게 하는지 알려주세요~
현재 외부에서 IP를 받아서 윈도우XP에서 공유해서
리눅스로 인터넷 공유해서 사용하고 있습니다.
리눅스 머신에서 또 랜카드를 달아서, 노트북에 공유를 하고 싶은데요.
외부 ----- XP(공유) ----- Linux(IP:192.168.0.143) ----- 노트북
이렇게 쓰고 싶습니다.
리눅스에서 DHCP 설정을 알고 싶습니다.
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option domain-name-servers 168.131.33.5;ernet Systems Consortium DHCP Server V3.0.1
Jul 15 00:01:59 localhost dhcpd: Copyright 2004 Internet Systems Consortium.
Jul 15 00:01:59 localhost dhcpd: All rights reserved.
Jul 15 00:01:59 localhost dhcpd: For info, please visit
option domain-name "tm.net.my";
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
default-lease-time 600;
max-lease-time 7200;
}
위와 같이 셋팅 했더니.
/var/log/syslog 에
Jul 15 00:01:59 localhost dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Jul 15 00:01:59 localhost dhcpd: Copyright 2004 Internet Systems Consortium.
Jul 15 00:01:59 localhost dhcpd: All rights reserved.
Jul 15 00:01:59 localhost dhcpd: For info, please visit http://www.isc.org/sw/dhcp/ernet Systems Consortium DHCP Server V3.0.1
Jul 15 00:01:59 localhost dhcpd: Copyright 2004 Internet Systems Consortium.
Jul 15 00:01:59 localhost dhcpd: All rights reserved.
Jul 15 00:01:59 localhost dhcpd: For info, please visit
Jul 15 00:01:59 localhost dhcpd: Wrote 0 leases to leases file.
Jul 15 00:01:59 localhost dhcpd:
Jul 15 00:01:59 localhost dhcpd: No subnet declaration for eth0 (192.168.0.143).Jul 15 00:01:59 localhost dhcpd: ** Ignoring requests on eth0. If this is not what
Jul 15 00:01:59 localhost dhcpd: you want, please write a subnet declaration
Jul 15 00:01:59 localhost dhcpd: in your dhcpd.conf file for the network segment
Jul 15 00:01:59 localhost dhcpd: to which interface eth0 is attached. **
Jul 15 00:01:59 localhost dhcpd:
Jul 15 00:01:59 localhost dhcpd:
Jul 15 00:01:59 localhost dhcpd: Not configured to listen on any interfaces!
답변부탁드립니다.
댓글 달기