���� ���� ����

3. ��Ʈ��ŷ �����ϱ�

��, ���ݱ��� �������� ����Ʈ���� ��ǻ�Ϳ� �������� ��ġ�ߴ�. �������� ��Ʈ��ũ ī�� �� �ϳ��� �����߰�, ���ͳݿ� ������ �����ߴ�. �׷�����, �츮�� ���������� ������ ���̰� � �͵� ���� �������� �ʾҴٰ� ������ ���̴�.

root�μ� �α��� �϶�. �� ������ ���� ��� ���ô� �������� root�μ� �α��� �ߴٰ� �����Ѵ�.

������ Ŀ���� �� ���� �̴��� ī�带 eth0�� eth1�μ� �����Ѵ�. �������ʹ� ���� �װ͵鿡 ���� ����ϰ� �� ����� �� ���̴�. �ַ� ������, ��� ���� � �������̴�. ����� ��� 50%�� ���̵��� �����Ѵٸ�, �Ǻ��ϴ� "������" ����� �ִ�. �������带 ���� ��ǻ�͸� å�� ���� ���������� ���� �� �г�(back panel)�� �������� ���ϰ� �Ѵ�. (���� �������� �װ� ���� �� ������ �����ΰ� �ϰ� �Ǵ� �Ͱ� ���� �ϵ��� �Ѵ�.) ���� ������ ī��� eth0�̴�. -- �������� �ణ�� ����ŷ �������� ���� ���̰��� ���� �𸥴�. ����, ���� ���� eth0�� eth1 �� ����� ������ ���� �� �ξ��.

��, eth0�� eth1�� Ŀ�ο� ���� �ڵ������� �νĵǴ��� ���θ� ����. ifconfig eth0�� ifconfig eth1�� �Է��Ѵ�. �� ��쿡 �־�, ���� Ŀ���� ī�带 �ν��ϰ� ������, �������� (���ڿ� �� ���� ���� ������ �� ������ �����Ͽ�) �̿� ���� ���� ���ƾ� �Ѵ�:

eth0   Link encap: Ethernet   HWaddr 00:60:67:4A:02:0A 
       inet addr:0.0.0.0  Bcast:0.0.0.0  Mask:255.255.255.255
       UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
       RX packets:466 errors:0 dropped:0 overruns:0 frame:0
       TX packets:448 errors:0 dropped:0 overruns:0 carrier:0
       collisions:85 txqueuelen:100 
       Interrupt:10 Base address:0xe400
 

���� Ŀ���� ��Ʈ��ũ ī�带 �ν����� ���Ѵٸ� �̿� ���� ���� ���� �� ���̴�:

eth0: error fetching interface information: Device not found.
 

3.1 ��Ʈ��ũ ����̹��� �����ϱ�

���� ī�带 �� �� ã������ ���� �������� �Ѿ� ����. �ƴϸ�, �� ������ �о��.

��, �̹� �ƴ� �ٿ� ���� ī�尡 �ϳ� Ȥ�� �� ��ΰ� Ŀ�ο� ���� �νĵ��� �ʴ´�. ������, �̰��� ������ ���� �ʴ´�. �ݵ�� �ؾ� �� ���� ī�带 ã�� ����� Ŀ�ο� �� �� ���������� �˸��� ���̴�. ���⿡�� �쿩������ ����, �� ��θ� �ٷ����� ���� ���̴�. ������ ���� ������� �� Ethernet HOWTO�� �ٲپ��. ���⿡ �� ���� ���� ������ �ִ�.

����, �������� eth0�� eth1�� �������� ���� �������� �˱� ������ Ethernet HOWTO�� compatibility page�� �Űܰ��� ī�带 ã�Ƴ� �� �ִ�. ��õ�� ����̹��� ī�尡 �ʿ�� ���� �𸣴� Ư���� �ɼǿ� ���� ������ �޸��϶�. ���� �ζ�.

���� ������ ������ ����! �����ϰ� �� ������ /etc/conf.modules�̴�. �������� ������ �ؽ�Ʈ ������(text editor)�� �� ������ �����. �� ���Ͽ� ���Ե� �� �ִ� �ſ� ���� ���ɼ��� ������ �ֱ� ������ �� ���μ� �� �ڽ��� ����Ʈ���̸� ������ ���̴�. ���� VIA Rhine Ĩ�� ����� PCI 10/100Mb ī��� 10Mb NE2000 ISA ����ǰ(clone)�� ������. ���� ���� ��Ʈ��ũ�� ���� 100Mb ī�带, �ܺ� ������ ���� 10Mb ī�带 ����Ѵ�. ���� /etc/conf.modules ������ �̰Ͱ� ����:

alias parport_lowlevel parport_pc 
alias eth0 ne 
options ne io=0x300 irq=10 
alias eth1 via-rhine 
 

���� conf.modules ������ ������ ���� ���� ���δ�.

�������� �� ���� ī�带 ���� conf.modules�� alias ��������� �����ٴ� ���� �����ϰ�, ��� ISA ī�带 ���� options ���� ��Ȯ�ϰ� ������� �� ���̴�. �������� ��ġ�ϴ� ���� �������� ������ �̴��� ī�带 ���� conf.modules�� �̹� ���� ����� �̹� ������ ������ �𸥴�.

�������� conf.modules�� �����ϴ� ���� �Ϸ��Ͽ��� ��, ifconfig eth0�� ifconfig eth1�� �ٽ� �õ��϶�. ���� ���ۻ��� �Ŵ����� ���� �������� IO �ּҿ� IRQ�� �Ǽ��ϰ� �ִٸ� ���������� ���� �� ���� ���̴�.

�� ���� ������ ��Ʈ��ũ ī��

�׷���, �������� ��¥�� ��¥�� �����Ͽ���, �������� ������ ����Ʈ���̸� ���� ������ ��Ʈ��ũ ī�带 �� �� ���. �������� �װ͵��� �Բ� �۵��ϵ��� �� �� ���ٸ�? �������� ����. �װ͵��� �����ϵ��� �ϴ� ���� /etc/conf.modules���� ��Ȯ�� ������ ����ϴ� ���� ������ ���̴�. �� ���� ���� �ּҿ� IRQ ��ȣ�� ���������, ��ȭ�� �� ���� NE2000 ����ǰ�� �����ߴٰ� �����ϰڴ�. /etc/conf.modules ������ �̰Ͱ� ����:

alias eth0 ne
alias eth1 ne
options ne io=0x330,0x360 irq=7,9 
 

The addressing options are all given on the same line, and the first number for each addressing type is for eth0, the second number for eth1. �ּҸ� �����ϴ� �ɼ��� ������ �࿡ ��� �־�����, �� �ּҸ� �����ϴ� ���¸� ���� ù ��°�� ���� eth0�� ���� ���̰�, �� ��°�� ���� eth1�� ���� ���̴�.

3.2 ���� ��Ʈ��ũ�� �����ϱ�

"���� ��Ʈ��ũ"�� �������� ��� ����/�繫�� ��� ���ϰ� �Ǵ� ��Ʈ��ũ�̴�. "�ܺ� ��Ʈ��ũ"�� ������ �ڽ��� �ٸ� �ʿ� �ִ� ��Ը��� ���ù����� ���ͳ��̴�. ��ü��, ���� ��Ʈ��ũ�� ������ �ڽ��� ���� �ܺ� ��Ʈ��ũ�κ��� ������ �ݸ��� ���̴�. �̴� �߰� ������ ������ ��ȭ�����μ� ���� ���̴�.

��Ʈ��ũ ��ġ

�������� ����̹��� �۵��ϰ� �ְ� ifconfig���� eth0�� eth1�� �� �� �� �� �����Ƿ� ������ ������ ��Ʈ��ũ�� �����Ͽ��� �ϴ� ���̴�. eth1�� ���� ��Ʈ��ũ��, eth0�� �ܺ� ��ġ�� �дٰ� �����ϰڴ�.

�������� ���� ��Ʈ��ũ�� ���ο� ��Ʈ��ũ�� �� ���̰�, �̸� ���ؼ� ���� ��Ʈ��ũ ������ ���� ����� Ư���� ��Ʈ��ũ�� �ְ� �� ���̴�: 192.168.1.0. ���� ģ���� ������Ű�⸦ ���ϸ�, �̴� "���ο� C Ŭ����"�̴�.

�켱 ��Ʈ��ŷ�� ������ �������� Ȯ���� �ʿ䰡 �ִ�. /etc/sysconfig/network������ �����Ͽ� ������ ����� �ִ��� Ȯ���϶�.

NETWORKING=yes 
FORWARD_IPV4=yes
 

ù ��° ���� ��Ʈ(boot) �ÿ� ��Ʈ��ũ ��ġ�� �ҷ� ������ ���������� �˸���. �� ��° ���� IP ����(IP forwarding)�� ������ �ϵ��� ���������� �˸���. ���� 4���� �Ž�Ŀ���̵��� �����ϴ� ���� ������ �� �̰��� �ʿ��ϴ�.

������ 6.2 ����: IP ���۰� �Ž�Ŀ���̵��� �����ϰ� �����ϱ� ���ؼ� ������ 6.2�� /etc/sysctl.conf ���Ͽ� ������ �ʿ�� �Ѵ�. ������ ����� �ִ��� Ȯ���ϰ� ��Ȯ�� ���� �����Ѵ�:

net.ipv4.ip_forward = 1 
net.ipv4.ip_always_defrag = 1 
 

�����ް� ������ �Ļ�ǰ�� ���� ��� ��Ʈ��ũ �������̽� ������ /etc/sysconfig/network-scripts ���丮 ���� ���ϵ鿡 ���Եȴ�. �� ���丮�� ���� �� ���Ϸ� ifcfg-eth1�� �����. ifcfg-eth1 ���� ���� ������ ���� ������ �д�:

DEVICE=eth1 
IPADDR=192.168.1.1 
ONBOOT=yes
 

�� �ڵ�� ��Ʈ �ÿ� eth1�� �����ϰ� �������� IP �ּҸ� �ֵ��� ��Ʈ��ũ ��ũ��Ʈ���� �˸���. ������ ���� ���ɾ�� �Բ� �� ������ ����Ͽ� �������� ��Ʈ��ũ�� Ȱ��ȭ �϶�: /etc/rc.d/init.d/network restart

DHCP ����

DHCP ������ IP �ּҸ� ������ ���� ������ ��Ʈ��ũ ���� ��ġ�� �ڵ������� ������ ���̴�. �̰��� ������ ���� ������� ���� �ſ� �����ϴ�. �׵��� �ڽŵ��� ��� ������ �ű⸸ �ϸ� ��� �����ϰ� ������ �� �ִ�. ���� �������� ���� ��Ʈ��ũ �󿡼� DHCP ������ ������ �ʴ´ٸ� ���� �������� �Ѿ� ����.

�켱 �������� DHCP ������ ��ġ�Ǿ����� Ȯ���� �ʿ䰡 �ִ�. ������ CD�� ����Ʈ�ϰ� dhcp RPM�� ��ġ�϶�. ���� /etc/dhcpd.conf ������ �����Ͽ� ������ ���� ������ �ִ´�:

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.2 192.168.1.60;
  default-lease-time 86400;
  max-lease-time 86400;
  option routers 192.168.1.1;
  option ip-forwarding off;
  option broadcast-address 192.168.1.255;
  option subnet-mask 255.255.255.0;
}
 

���� �������� ������ �ڽ��� ij�� ������ ���� ����(caching domain name server)�� �����ϰ��� �Ѵٸ�, ������ ���� �ɼ��� �߰��϶�:

option domain-name-servers 192.168.1.1;
 

If you know your outside DNS addresses and you are not going to use the Linux box for DNS, insert the following option, where x.x.x.x and y.y.y.y are IP numbers of the DNS servers: ���� �������� �ܺ��� DNS �ּҸ� �˰� �ְ� DNS�� ���� ������ �ڽ��� ������� ���� ���̶��, ������ ���� �ɼ��� �߰��϶�. ���⼭, x.x.x.x�� y.y.y.y�� DNS ������ IP ��ȣ�̴�.

option domain-name-servers x.x.x.x, y.y.y.y;
 

���� �������� ��������(Windows) ��ǻ�͸� ���� ������ �ڽ��� ���(Samba) ���� ������ ������ ���̶��, ������ �ڽ��� �⺻���� WINS�� ����¡(browsing) ������ ����ϵ��� ������ ���� �ɼ��� �߰��϶�:

option netbios-name-servers 192.168.1.1; 
option netbios-dd-server 192.168.1.1; 
option netbios-node-type 8; 
option netbios-scope "";
 

��ٿ� WINS�� �����ϴ� ���� �� ������ ������ �����. ���� �� ���� ��ħ�� �ʿ��ϴٸ� SMB HOWTO�� �����ϰ�, �ű⼭���� ����϶�.

������ �� ���� �ܰ谡 �� ���� �ִ�. ������, /etc/rc.d/init.d/dhcpd ������ �����Ͽ� ������ ���� ���� ã�´�.

/sbin/route add -host 255.255.255.255 dev eth1
 

�������� DHCP Ŭ���̾�Ʈ�� DHCP ���信 �־� Ư���� ��ε�ij��Ʈ �ּҸ� �ʿ�� �ϰ�, �� ������ ������/TCP ������ �װ��� ����� ������ �Ѵ�. ���� �������� ���Ͽ��� �� ���� ã�� �� ������ �߰��϶�. ���� �������� �׷��Ͱ� ���� ���� ã�´ٸ� �װ��� �����ϴ� ��ġ�� eth1���� Ȯ���϶�.

���� �ܰ�� �⺻ ��ġ�μ� eth1�� ����ϵ��� /etc/rc.d/init.d/dhcpd ������ �����ϴ� ���̴�. ���� ��

daemon /usr/sbin/dhcpd
 

��

daemon /usr/sbin/dhcpd eth1
 

���� ��ü�϶�. ���� DHCP�� �õ��� �غ� �ƴ�. �켱 ������ ����Ͽ� DHCP ������ �����Ѵ�: /etc/rc.d/init.d/dhcpd start

����������, DHCP ������ ����Ʈ(re-boot) �ÿ� ������ ������ Ȯ���Ͽ��� �Ѵ�. DHCP ������ � RPM ��Ű���� �Ź� ������ �����ϴ� ���� �����ϴ� ���ø� �������� �ʴ´�. �׷���, chkconfig dhcpd on ������ �������ν� ������ �����ϵ��� ������ ���̴�.

�� �������� ���� �������� /etc/rc.d �Ʒ��� �پ��� �������(runlevel)�� ���丮�� DHCP �õ� ��ũ��Ʈ�� �߰��Ѵ�. ������� 3�� 5(multiuser console�� multiuser X)������ DHCP ������ ���۵ȴ�. ������� 0,1,6(shutdown, single user, reboot)������ DHCP ������ �����.

Ŭ���̾�Ʈ ��ǻ��

���� �������� DHCP�� �����Ͽ��ٸ�, Ŭ���̾�Ʈ ��ǻ�͸� �����ϴ� ���� �ſ� ����: ���� DHCP ������ �����ɸ� �Ѵ�. �������� ��ǻ�Ϳ� ���� �̰��� "������", �� ������ "��Ʈ��ũ" �ɼ��� ���� ���� �����Ѵ�. "TCP/IP" ���������� ã��, "����"�ϵ��� �����Ѵ�. "�ڵ����� IP �ּҸ� �ޱ�"�� �ش��ϴ� �ڽ��� üũ�ϰ�, ������ �����ϰ�, ����Ʈ �Ѵ�.

����Ʈ �ϱ� ���� ������ ���� ������ �Է��� ���� ������ �𸣰ڴ�: tail -f /var/log/messages �̰��� ������ �ý��� �α׸� ����Ͽ� ���Ѻ� ���̴�. ���� ��� �� �������̸�, �������� ��ǻ�͸� ����Ʈ �� ��, IP �ּҸ� ��û�� ���� ���� �� ���̰�, DHCP ������ �����ϴ� ���� ���� �� ���̴�. Control-C�� tail -f ������ �����Ѵ�.

���� �������� DHCP�� �������� �ʾҴٸ�, ������ ���� ����� ����. �ٽ� "������"���κ��� "��Ʈ��ũ" �ɼ��� ����, TCP/IP ���������� �����ϱ� ���� �����Ѵ�. �������� Ŭ���̾�Ʈ ��ǻ������ 192.168.1.0(��Ʈ��ũ �ּ�), 192.168.1.255(��ε�ij��Ʈ �ּ�) �Ǵ� 192.168.1.1(�������� ������ ����)�� ������ 192.168.1.0 ��Ʈ��ũ ���� � �ּҵ��� �Ҵ��� �� �ִ�. ���� �� ���� ��ǻ������ ������ �ּҸ� �ο��ؼ��� �� �ȴ�. "����Ʈ����" �ּҸ� 192.168.1.1�� �����϶�. �׷���, �ܺη� ������ Ʈ����(traffic)�� ������ ����Ʈ���̸� ���� ��������.

The IP Masquerading HOWTO has very detailed information on client configuration in the Configuration Section. IP Masquerading HOWTO�� Configuration Section�� Ŭ���̾�Ʈ ������ ���� �ſ� ���� ������ ������.

�Ϲ�������, Ŭ���̾�Ʈ ��ǻ�͸� �����ϱ� ���ؼ� DHCP ������ ������ �ϰų� 192.168.1.1�� ����Ʈ���̸� ������ 192.168.1.X ��Ʈ��ũ���� �ּҸ� �������� �Ҵ��Ѵ�. ���� �������� ij�� DNS ����(�Ʒ��� ����)�� �����ϰų� DNS�� ��Ʈ��ũ �����ڿ� ���� �Ҵ�� �ּҷ� �����ٸ� DNS ������ �� �� 192.168.1.1�� �ǵ��� �Ѵ�.

DNS ����

������ �ڽ��� ij�� DNS ������ �����ϴ� ���� �ݼ��� �ӵ��� (����) ����ų ���̴�. �밳 ���Ǵ� DNS �ּҴ� �������� ��Ʈ��ũ ���ο��� ij�� �Ǿ����� �ܺηκ��� ������ �ʿ䰡 ���� �����̴�.

���� �������� ������ ����� ���� DNS�� ������ �ִٸ� ������ �͵��� ������ ����� �Ѵ�. DNS HOWTO�� �̿� �����ϰ�, DNS and BINDå�� ���� (�׸��� �ſ� ���ط��� ����) ���� �����̴�.

�������� Ŭ���̾�Ʈ ������ ij�� ������ �̿��ϱ� ���Ͽ� ������ ����Ʈ���̸� �װ͵��� �� DNS ������ ����ϵ��� �ݵ�� �����Ǿ����� �Ѵ�. ���� 3.2.2���� ������ DHCP �����ڴ� �̸� �����ϴ� �� ���� ����̴�. ���� �������� Ŭ���̾�Ʈ ��ǻ�͸� ���� �ռ� �����ϰ� �ִٸ�, ����� IP �ּҸ� �����ϱ� ���� ����� ������ ��Ʈ�� ������ DNS ������ ���� �����ϴ�.

DNS ������ ��ġ�ϱ� ���Ͽ� ���� bind RPM�� ��ġ�Ѵ�. �� ������ caching-nameserver RPM�� ��ġ�Ѵ�. �� ��������, �������� ���� �غ�ƴ�.

��ġ�ʿ� ����, ij�� ������ ����� �۵��� ���̴�. �׷��� ���� �������� ���ͳ� �������� DNS ������ IP �ּҸ� �ȴٸ�, /etc/named.conf ������ �����Ͽ� directory �� ���Ŀ� ������ ���� �߰������ν� ������ �����̶� ����ų �� �ִ� (���⼭, x.x.x.x�� y.y.y.y�� �� DNS ������ ���� DNS �����̴�):

forwarders { x.x.x.x; y.y.y.y; }; 
 

�� ������ �������� DNS ������ �־��� �ּ��� �˻��� �־� ���ͳ��� ������ ������ ���� �켱������ ISP�� DNS ������ ��ȸ�ϵ��� �Ѵ�. ISP ������ ���� DNS ������ ����� ij�� �ϰ�, �������� ������ �� �� �ִ� �ͺ��� �ξ� ���� ������ �����Ѵ�.

named ������ ���� 12 ������ ������ ���� �� ���� ���� ������ �Ȱ� �־���. �׷���, �������� ���� �ֽ� ������ �����ϰ� �־�� �ϰ�, ������ ��ȭ�ϱ� ���� �⺻ ������ �� ���� ������ ���ϴ� ���� �ſ� �߿��ϴ�.

  1. bind�� ������ �����ϰ� ��� 8.2.2�� �Ǵ��� Ȯ���Ѵ�. Red Hat Updates �Ǵ� Mandrake Updates ����Ʈ�� ���� ���� �ֽ� ������ �����϶�.
  2. /etc/named.conf ���Ͽ� forwarders �� ���Ŀ� allow-query { 192.168.1/24; 127.0.0.1/32; }; ���� �߰������ν� ���� ��Ʈ��ũ���� ���� �������� ���� ������ ������ �����϶�.
  3. �������� ���Ӽ����� root�� �����ϴ� ���� ���϶�. ���� �������� ������ root�� ���� ���̶��, ������ �ͽ��÷���(exploit)�� �̱����� �̿������� root ������ ����ϰ� �� ���̴�. ���� �������� ������, nobody�� ����, ������ ����ڷ� �����Ѵٸ�, ���� ���� �ͽ��÷����� ������ ���� �� �ִ�. �������� ���� ������ nobody�� �����Ϸ���, /etc/rc.d/init.d/named ������ �����Ͽ� daemon named ���� daemon named -u nobody -g nobody�� ��ģ��.

�������� DNS ������ ��Ʈ �ÿ� ������ ������ Ȯ���Ѵ�: chkconfig named on. �ٽ�, �̴� ������ ��Ʈ �ÿ� ������ �������(3�� 5)���� ���۵� ���̶�� ���� �����Ѵ�.

��, ���� �������� DNS ������ ������ �� �ִ�: /etc/rc.d/init.d/named start

���� ��Ʈ��ũ�� �����ϱ�

�ܺ� ��Ʈ��ũ�� ������ �������� (���ͳ� �󿡼� �ٸ� DNS ������ ����Ǿ�� �ϱ� ������) DNS ���񽺴� �۵����� ���� ���̴�. �׷���, ping ���α׷��� ����Ͽ� �⺻���� ���� ���� ���¸� �˻��� �� �ִ�.

�������� Ŭ���̾�Ʈ ��ǻ�� �� �� �뿡�� �͹̳� (MSDOS) â�� ����, ping 192.168.1.1�� �Է��Ѵ�. �̴� ��Ŷ�� ��Ģ���� �������� �������� ������ ��ǻ�ͷ� �����ϰ� �������� ������ ��ǻ�ʹ� ��Ŷ�� �ǵ��� �ְ� �� ���̴�. ���� ����� �۵� ���̸�, �� ���� ��Ŷ ȸ���� �� ���� ���ƾ� �Ѵ�.

3.3 �ܺ� ��Ʈ��ũ�� �����ϱ�

���� �Ⲩ�� �ܺ� ��Ʈ��ũ�� ������ �� �ִ�. ���ͳ� �����ڰ� �������� �󸶳� ����� �����ϴ����� ����, ������ �̰��� ����� ���̴�. ADSL �̽��� �ټ� �ڼ��� ����ϴ� ADSL mini-HOWTO�� �ִ�. ���� ���� Cable Modem HOWTO�� ã�� �� ������, ���� �װ��� ��ũ�� ����ڴ�.

��κ��� �ܺ� ���ῡ ���� �ֿ� ������ IP �ּҸ� ��� ���̴�. � ���ͳ� �����ڴ� ���̺� �Ǵ� ADSL ���������� ������ IP �ּҸ� ������ �ش�. �� ��쿡 ������ ����. ������, ��κ��� �����ڵ��� DHCP�� ���� ������ �������� �ٲپ���. �̰��� �������� ������ ��ǻ�Ͱ� �������� eth1 �������̽� �󿡼� DHCP ����, �������� eth0 �������̽� �󿡼� DHCP Ŭ���̾�Ʈ�� �DZ� ���� ���̶�� ���� �ǹ��Ѵ�.

Additionally, many providers have taken to providing their services in specialized non-standard ways which assume their customers will be using Windows. Some of those cases will be discussed at the end of section 3.3.2. �Դٰ�, ���� �����ڵ��� �׵��� �������� ������� ��� ���� ���̶�� �����ϴ� Ư��ȭ�� ǥ���� �ƴ� ������� ���񽺸� �����ϴ� �Ϳ� ������ �ִ�. �׷� ������ �� ������ ���� 3.3.2�� �� �κп��� ���ǵ� ���̴�.

������ IP�� ���� ���

���� �������� ���ͳ� �����ڰ� ���������� ������ IP �ּҸ� �Ҵ��Ѵٸ� �������� ������ ó���� �ִ�. ����, ���ο� �������̽� ���� ������ �����ϰ�, /etc/sysconfig/network-scripts/ifcfg-eth0, ������ �� �ȿ� �ִ´�.

DEVICE=eth0
IPADDR=x.x.x.x
NETMASK=y.y.y.y
ONBOOT=yes
 

�������� ���ͳ� �����ڿ� ���� �־��� ������ x.x.x.x�� y.y.y.y�� ä��⸸ �Ѵ�. ���� /etc/resolv.conf ������ �����Ͽ� ���� ������ �Է��Ѵ�.

search provider_domain_here
nameserver n.n.n.n
nameserver m.m.m.m
 

provider_domain�� ���ͳ� �����ڿ� ���� ���޵Ǿ�� �Ѵ�. ����, �� DNS ������ ���� DNS ������ n.n.n.n�� m.m.m.m �࿡ �Է��Ѵ�. ���� �������� ������ �ڽ��� DNS ������ �����Ͽ��ٸ� �ٸ� ���Ӽ��� ���Ի��� ������ �ϳ��� ���� �߰��Ѵ�: nameserver 127.0.0.1. �̰��� �ܺ� �������� DNS ������ ��û�ϱ� ���� �������� ������ ������ ij�� ������ ����ϵ��� �Ѵ�.

DHCP�� ����ϴ� ���

���� ���ͳ� �����ڰ� DHCP ������ ����Ѵٸ�, ���ο� �������̽� ���� ������ �����ϰ�, /etc/sysconfig/network-scripts/ifcfg-eth0, ������ �� �ȿ� �־� �� �ʿ䰡 �ִ�:

DEVICE=eth0 
BOOTPROTO=dhcp 
ONBOOT=yes
 

���� dhcpcd Ŭ���̾�Ʈ ������ �������� �ý��ۿ� ��ġ�Ǿ����� Ȯ���Ѵ�. ������ CD�� ���� dhcpcd RPM ��Ű���� ��ġ�Ѵ�.

�������� ���ο� ��Ʈ��ũ ������ ������ ���̴�. /etc/rc.d/init.d/network restart ������ ����ϱ⸸ �϶�. ���� ping�� ����Ͽ� �������� �ܺ� ������ �����϶�. www.yahoo.com�� ���� ���ͳ� ���� ��ǻ�͸� ��(ping) �ϰ� � ���� �ǵ��� ������ ���ƶ�.

����԰� ���ܵ�

�������� ��Ȳ�� ������ ����� �ſ� ������ ��Ȳ���� �ٸ��� �𸥴�. ���⿡ ���������� ���̿� ���� �� ���� ������ ���ؿ� �� �� �������� �ڿ��� �ִ�. ��ũ�� �� ������ �߰��ϵ��� �ڱ��� ������ �� ���� John Mellor���� �����Ѵ�.

�̴��� �󿡼� PPP (PPPoE)

�ټ��� ADSL �����ڵ�(���� ���, Bell Atlantic)�� ���ο� ������ " PPP over Ethernet" �������� (PPPoE)�� ����Ͽ� ���񽺿� �����Ͽ��� �Ѵٰ� �����ϰ� �ִ�. �� ������ ���� �׵��� �������� Ŭ���̾�Ʈ ���α׷��� ����������, ������ ����ڵ����״� �״��� �������� ���ϴ�. ���ེ���Ե�, PPoE�� ������ ���������̰�, ������ �Ͽ����� �����ϱ� ���� �ټ��� ����� ���� �߿� �ִ�.

�ٺ����� DHCP Ʈ��

��Ʈ��ũ �����ڰ� ���ϴ�, Ư�� �����ϴ� Ʈ���� �� �ϳ��� �������� ���񽺸� ������ ȣ��Ʈ ��Ī, �Ǵ� ������ ������ ��Ʈ��ũ ī�忡 ������Ű�� ���̴�. �̰��� ��긦 ����Ͽ� ���� ���� ��ǻ�Ͱ� �������� �̴��� ��Ʈ ���� �ȴ� �����κ��� �������� �׷� ���ϰ� ��ȣ�Ѵ�. (����, �������� �������� �Ž�Ŀ���̵��� ��������ν� �� ���� ������ ������ ������ ȿ���� ��� �� ���̰� ���̺� ȸ��� � ������ε� ���� ���Ѵ�!)

���� �����ڰ� ���������� ȣ��Ʈ ��Ī�� �ο��ϰ� �׵��� ���񽺸� ����ϱ� ���� �������� �������� �ڽ��� �� ��Ī���� ������ ���� �����Ѵٸ�, �������� DHCP �����κ��� �ּҸ� ��û�� �� �������� ������ �ڽ��� �� ȣ��Ʈ ��Ī���� �����ϴ��� Ȯ���Ͽ��� �� ���̴�.

�������̽� ���� ���Ͽ��� BOOTPROTO�� dhcp�� ������ �� ������ DHCP Ŭ���̾�Ʈ�� ȣ��ȴ�. �׷��� ȣ��Ʈ ��Ī�� �������� �ʰ� ȣ��ȴ�. ȣ��Ʈ ��Ī�� ����Ͽ� ���α׷��� ȣ���ϱ� ���ؼ�, ������ 6.1����, /etc/sysconfig/network ������ �����Ͽ� ���� ���� �����϶�:

HOSTNAME=

�̸� �ǵ��Ϸ���:

HOSTNAME=your_isp_assigned_name

�̰��� ������ ������ � �Ϳ����� �۵����� ���� ���� �𸥴�. ���� �۵����� ������, /sbin/ifup ��ũ��Ʈ�� �����ϰ� dhcpcd�� pump�� ȣ���� -h $HOSTNAME ����ġ�� �����ϴ��� ����. ���� �׷��� ������, �װ͵��� �߰��϶�. �׷��� ȣ���� /sbin/dhcpcd -i $DEVICE -h $HOSTNAME�� /sbin/pump -i $DEVICE -h $HOSTNAME�� ����.

Road Runner

Road Runner ���̺� ���񽺴� ������ ���� �� �ֱ� ���� �ݵ�� ����Ǿ�� �ϴ� Ư���� �α��� ó���� ������. ���ེ���Ե�, ���� Linux Road Runner HOWTO�� �̿� �����ϴ�.

��Ʈ��ũ ��Ʈ���� ����

���� �������� ��ǰ�� ��ź���� �𸣰ڴ�. ��� ������ ��ġ�� ���� ���� ifconfig�� �Է��϶�. ���� ����Ʈ���� ��ǻ�Ϳ��� �̿� ���� ���δ�:

eth0  Link encap:Ethernet  HWaddr 00:60:67:4A:02:0A 
      inet addr:24.65.182.43  Bcast:24.65.182.255  Mask:255.255.255.0 
      UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1 
      RX packets:487167 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:467064 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:89 txqueuelen:100 
      Interrupt:10 Base address:0xe400
eth1  Link encap:Ethernet  HWaddr 00:80:C8:D3:30:2C 
      inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0 
      UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1 
      RX packets:284112 errors:0 dropped:0 overruns:0 frame:1 
      TX packets:311533 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:37938 txqueuelen:100 
      Interrupt:5 Base address:0xe800
lo    Link encap:Local Loopback 
      inet addr:127.0.0.1  Mask:255.0.0.0 
      UP LOOPBACK RUNNING  MTU:3924  Metric:1 
      RX packets:12598 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:12598 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:0
 

eth0 �������̽��� ���ٸ� �ܺ��� IP �ּҸ� ������, eth1 �ּҴ� ���ο� ���� �ּҸ� ������.

route ������ �Է������ν� ��Ʈ��ũ ����͸� �� �� �ִ�. ���� ����Ʈ���� ��ǻ�Ϳ��� �̿� ���� ���δ�:

  Kernel IP routing table 
  Destination     Gateway      Genmask         Flags Metric Ref Use Iface 
  255.255.255.255 *            255.255.255.255 UH    0      0     0 eth1 
  192.168.1.0     *            255.255.255.0   U     0      0     0 eth1 
  24.65.182.0     *            255.255.255.0   U     0      0     0 eth0 
  127.0.0.0       *            255.0.0.0       U     0      0     0 lo 
  default         24.65.182.1  0.0.0.0         UG    0      0     0 eth0
 

���⼭ �ܺ� ��Ʈ��ũ�� ������ ����, ���� ��Ʈ��ũ�� ������ ����, ���� ��ġ�� ������ ����, Ư���� 255.255.255.255 ��ε�ij��Ʈ �ּҰ� ������ ����, �⺻ ����Ͱ� ���ͳ� ������ ����Ʈ���̸� ����Ű���� ������ ���� �� �� �ִ�. �Ϻ��ϴ�!

���� �������� �ܺ� ��Ʈ��ũ�� ���� ��Ʈ��ũ�� ������. ���� ���δ� �� ���̸� �����ϴ� ���̴�. �׷�����, ���� � ������ �ܺηκ��� ���� �� ����� �Ѵٴ� ���� Ȯ���Ѵ�.

3.4 ����

ADSL �Ǵ� ���̺��� ������ ���ͳݿ� ���������� ����Ǵ� ���� ���� ���� �ϳ��� �������� ��ǻ�Ͱ� �� ���� 7 �ϰ�, �Ϸ� 24 �ð� ���� �������� ���� ������ ����Ǿ� �ִٴ� ���̴�. �������� ����Ʈ���̷� ����ϴ� ���� ��� �ٸ� ��ǻ�͸� ���߱� ������ ������ ���ҽ�Ų��. �� ���� ���ͳݿ� ���� ��, ���� �������� ������ �ڽ����� ������ ���� ��� �����ϴ�. �׷���, �� ��������, �������� �ڽ��� ���� �� �����ϰ� ����� ���� �⺻���� ���� �� ���� �� �˷� �� ���̴�.

����, ��� ���� ����� ������ �ʿ䰡 �ִ�. �̰��� �ϱ� ���� /etc/hosts.deny ������ �����Ͽ� �̿� �Ȱ����� Ȯ���϶�:

# 
# hosts.deny  This file describes the names of the hosts which are 
#             *not* allowed to use the local INET services, as decided 
#             by the '/usr/sbin/tcpd' server. 
# 
#            The portmap line is redundant, but it is left to remind you that 
#        the new secure portmap uses hosts.deny and hosts.allow. In particular 
#             you should know that NFS uses portmap! 
ALL: ALL 
 

�̰��� -- ������ ������ 95%�� �����ϴ� -- "TCP wrappers"���� ��� ȣ��Ʈ�κ����� ��� ������ �ź��ϵ��� �˸���. �װ��� �ſ� �Ǹ��� ��Ģ�̴�! �׷��� �װ��� �������� ������ ������ ��Ʈ��ũ�κ��� ������ �ڽ��� ����Ǵ� �͵� ���� ���� �� ���̴�. �̴� ��Ȥ������. �׷���, �� ���� ���ܸ� ���� ���̴�. /etc/hosts.allow ������ �����Ͽ� �̿� �Ȱ����� Ȯ���϶�:

# 
# hosts.allow  This file describes the names of the hosts which are 
#              allowed to use the local INET services, as decided 
#              by the '/usr/sbin/tcpd' server. 
# 
ALL: 127.0.0.1 
ALL: 192.168.1.
 

This tells the "TCP wrappers" that they can allow connections to all services from the local device (127.0.0.1) and from your home network (192.168.1.). �̰��� "TCP wrappers"���� ���� ��ġ(127.0.0.1)�κ��� �׸��� �������� ������ ��Ʈ��ũ(192.168.1.)�κ��� ��� ���񽺿� ������ ����� �� �ִٴ� ���� �˸���.

������ �Ͳ��� �ڹ��踦 ����Ͽ� �������� ���� �ܺ��� ������ ���Ҵ�. ���� �������� ���� ����� �溸 �ý����� ���߱⸦ ���Ѵٸ�, �ξ� �� ���� ������ �־�� �� ���̴�. ���� �������� ������ ������ �ڽ��� ���� �� ���� ���⸦ ���ϸ� Security HOWTO�� �����ϱ⿡ ���� ���̴�.


���� ���� ����