Jump to content

Recommended Posts

Posted

в сети есть dhcp-сервер, от которого другой сервер получает все настройки сети, так вот мне нужно получать только ip от него, игнорируя dns и маршруты, так как используются другие маршруты и днс. Использую пока следующий /etc/network/interfaces :

auto lo
iface lo inet loopback

auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
hwaddress ether 00:xx:xx:xx:xx:xx
address 172.20.100.100
netmask 255.255.0.0
network 172.20.0.0
broadcast 172.20.255.255

auto eth1
iface eth1 inet static
address 192.168.1.3
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.100

каждую неделю включать dhcp(аренда ip на неделю, иначе в сеть не пускает), чтобы получить ip, а потом снова включать статику как то не рационально

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.