User Tools

Site Tools


настройка_сети_в_ubuntu

This is an old revision of the document!


Настройка сети в Ubuntu

Файлы конфигурации

Файл /etc/udev/rules.d/70-persistent-net.rules

...
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:18:7f:01", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
...

Файл /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
        address 172.16.1.13
        netmask 255.255.255.0
        gateway 172.16.1.254

Файл /etc/hostname

g13.d13.class

Файл /etc/hosts

127.0.0.1       localhost

192.168.13.1    g13.d13.class g13
172.16.1.50     g50

Файл /etc/resolv.conf

 
domain d13.class
nameserver 172.16.1.50

Команды для настройки

root@g13:~# /etc/init.d/networking restart
настройка_сети_в_ubuntu.1238989851.txt.gz · Last modified: 2013/05/22 13:50 (external edit)