jeff.carrell
3rd March 2007, 23:40
is there a way to have 2 ip addresses on a single interface?
i tried this:
root@s3:~# cat /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 10.1.1.203
netmask 255.255.255.0
gateway 10.1.1.1
dns-nameservers 206.176.129.2
address 192.168.150.254
netmask 255.255.255.0
and the result when i restarted networking was:
root@s3:~# /etc/init.d/networking restart
* Reconfiguring network interfaces...
/etc/network/interfaces:15: duplicate option
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:15: duplicate option
ifup: couldn't read interfaces file "/etc/network/interfaces"
...fail!
do i need to configure sub-interfaces like on WAN router interfaces?
thanx in advance...jeff
i tried this:
root@s3:~# cat /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 10.1.1.203
netmask 255.255.255.0
gateway 10.1.1.1
dns-nameservers 206.176.129.2
address 192.168.150.254
netmask 255.255.255.0
and the result when i restarted networking was:
root@s3:~# /etc/init.d/networking restart
* Reconfiguring network interfaces...
/etc/network/interfaces:15: duplicate option
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:15: duplicate option
ifup: couldn't read interfaces file "/etc/network/interfaces"
...fail!
do i need to configure sub-interfaces like on WAN router interfaces?
thanx in advance...jeff