How to configure eth1
I need to set up eth1 using these :
ip 10.5.15.200
netmast 255.255.255.128
mac address AA:6F:78:UI:34:34and must be set up before eth1 starts
and default gateway must be the first usable address from network
2 Answers
Open the file /etc/network/interfaces and add the following content:
auto eth1
iface eth1 inet static address 10.5.15.200 netmask 255.255.255.128 pre-up ifconfig eth1 hw ether AA:6F:78:UI:34:34This sets the specific values. However at the moment it is unclear what you meant with your comment on the default gateway. Could you elaborate?
5The gateway address can be any of the usable addresses within the 25 bit subnet here. It is usually the first, sometimes the last IPv4 address available.
auto eth1
iface eth1 inet static address 10.5.15.200 netmask 255.255.255.128 gateway 10.5.15.129 hwaddress ether AA:6F:78:UI:34:34