Jump to content
Cesbo Community
  • Announcements

    • RadioSintetica

      News!   12/10/17

      If you have any questions related to installation and purchase, please check our documentation https://cesbo.com/en/astra/docs/ and terms of service https://cesbo.com/en/terms/
      Also, we have an official Telegram chat: https://t.me/cesbo_en  you can ask any questions or share your experience with colleagues Если у вас возникли вопросы по установке и покупке, ознакомьтесь пожалуйста с документацией по адресу https://cesbo.com/ru/astra/docs/ и условиями использования https://cesbo.com/ru/terms/
      Так же, обращаю внимание, что у нас есть официальный Телеграмм чат: https://t.me/cesbo_ru в котором можно задать вопросы - или поделиться своим опытом с коллегами
Sign in to follow this  

One computer, Two LAN adapter, Two IP's in same subnet with DHCP

Recommended Posts

I have problems with networks. Troubles started when the ISP (Fiber) provided the same subnet for both lines. eth0 78.56.xxx.aaa eth1 78.56.yyy.bbb

@:route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    0      0        0 eth0   U     0      0        0 eth0   U     0      0        0 eth1     U     1000   0        0 lan1   U     0      0        0 lan1

eth0 inet addr:78.56.xxx.aaa  Bcast:  Mask:
eth1 inet addr:78.56.yyy.bbb  Bcast:  Mask:

Configuration (when it was old IP 85.206.YYY.BBB everything worked fine):

allow-hotplug eth0 
iface eth0 inet dhcp 

allow-hotplug eth1 
iface eth1 inet dhcp 
  post-up ip route add dev eth1 src 78.56.yyy.bbb table eth1 
  post-up ip route add default via dev eth1 table eth1 
  post-up ip rule add table eth1 from 78.56.yyy.bbb

And now there is a problem with DHCP renewal. When eth1 is run with ifup, everything works fine, but when renewal starts, line access is gone (ifdown eth1 && ifup eth1 and works well again until renewal)

dhclient[2823]: message repeated 8 times: [ DHCPREQUEST of 78.56.YYY.BBB on eth1 to port 67 (xid=0x6fe207d3)]

Is it possible to fix this trouble? Maybe what did I miss or did I do wrong? Or is it impossible?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this