Ubuntu
Ubuntu Dhcp Dns ,
1.
DHCP + DNS . .
Ubuntu. c http://mirror.yandex.ru/
, Ubuntu.
, . ( )
sudo su
,
sudo apt-get install ubuntu-desktop
MC, total commander windows ( ). MC
sudo apt-get install mc
, ,
sudo apt-get install nano
.
eth0 ( ). eth1 ( ).
sudo nano /etc/network/interfaces
:
auto eth0
iface eth0 inet dhcp DHCP
auto eth1
iface eth1 inet static ip
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.1
DNS ( dhcp, dns ).
sudo nano /etc/resolv.conf
:
nameserver dns 1
nameserver dns 2
sudo /etc/init.d/networking restart
ifconfig
( , )
sudo apt-get update
DHCP .
192.168.1.5 192.168.1.100, 255.255.255.0, 192.168.1.1 dhcp
sudo apt-get install isc-dhcp-server
C dhcp .
sudo nano /etc/dhcp/dhcpd.conf
:
# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0
range 192.168.1.5 192.168.1.100; IP ,
option domain-name-servers 192.168.1.1; IP DNS-
option domain-name "internal.example.org";
option routers 192.168.1.1; .
option broadcast-address 192.168.1.255;
mac , . ip
sudo nano /etc/dhcp/dhcpd.conf :
host network-xp {
hardware ethernet 08:00:27:3B:8D:F9;
fixed-address 192.168.1.99; ip
}
, ip .
sudo nano /etc/default/isc-dhcp-server
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"
sudo /etc/init.d/isc-dhcp-server start
, , dhcp . .
sudo /etc/init.d/isc-dhcp-server restart
dns
sudo apt-get install dnsmasq
. ENTER
sudo apt-get install arno-iptables-firewall
sudo dpkg-reconfigure arno-iptables-firewall
, "", .
. eth1
.
NAT
192.168.1.0/24
, firestarter, . .. firestarter , .
sudo apt-get install firestarter
http://www.linuxopen.ru/2008/01/18/firestarter.html
, , . , . , . ,
sudo nano /etc/init.d/start.script
:
#!/bin/sh
/etc/init.d/networking restart
,
sudo chmod +x /etc/init.d/start.script
, ,
sudo update-rc.d autostart.script defaults 95
95 .
man update-rc.d
.
Оставить комментарий