DeathsDeath
Limp Gawd
- Joined
- Oct 3, 2010
- Messages
- 395
I am using Lubuntu,
OK I have two Ethernet adaptors on a stand alone box.
I need eth0 to be a static address.
And then eth1 to be dhcp.
- how would i write that as a script (what would it say ....)
- Where would I put it so it is run everytim on start up? (or how would i set it so the system runs the script on start up?)
- It would have to do it everytime the box boots/reboots.
Thanks for looking
WHat i have so far :
/etc/network/interfaces
is where the definitions for the eth0/1 are at.
I can set it to:
# eth0 - Static
auto eth0
iface eth0 inet static
address 10.10.10.100
gateway 255.0.0.0
netmask 0.0.0.
network 0.0.0.0
broadcast 0.0.0.0
# eth1 -- DHCP
auto eth0:1
iface eth0:1 inet dhcp
and after this is written in interfaces, I just need to restart it:
sudo /etc/init.d/networking restart
But I need to not have the user have to do this or anything like this and just have it auto do it ...
I am fairly new to this kind of thing and trying to get it to work today ... ideas on how or what to do to make this work Thanks!
OK I have two Ethernet adaptors on a stand alone box.
I need eth0 to be a static address.
And then eth1 to be dhcp.
- how would i write that as a script (what would it say ....)
- Where would I put it so it is run everytim on start up? (or how would i set it so the system runs the script on start up?)
- It would have to do it everytime the box boots/reboots.
Thanks for looking
WHat i have so far :
/etc/network/interfaces
is where the definitions for the eth0/1 are at.
I can set it to:
# eth0 - Static
auto eth0
iface eth0 inet static
address 10.10.10.100
gateway 255.0.0.0
netmask 0.0.0.
network 0.0.0.0
broadcast 0.0.0.0
# eth1 -- DHCP
auto eth0:1
iface eth0:1 inet dhcp
and after this is written in interfaces, I just need to restart it:
sudo /etc/init.d/networking restart
But I need to not have the user have to do this or anything like this and just have it auto do it ...
I am fairly new to this kind of thing and trying to get it to work today ... ideas on how or what to do to make this work Thanks!