Results 1 to 2 of 2
ok I am using Debian 4 bigmem and I set up static ip for my box. This is for a class and we will be moving the hard drives around ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-13-2010 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 2
configure static ip for removable hard drive install for use on multiple machines
ok I am using Debian 4 bigmem and I set up static ip for my box. This is for a class and we will be moving the hard drives around the lab to different computers. My question is what do I configure to get Debian to be ok with my using different nics at different times.
My first time I used it, I had eth0, but now I'm on a different computer (same type of hardware on all systems) but my nic is now eth1... And I had to set up static again for that nic.
How can I have it just maintain a static ip for whatever nic/mac address on the computer that my hard drive happens to be put on?
Thanks
- 09-14-2010 #2
Hi,
why dont change the interface name in /etc/udev/rules.d/70-persistent-net.rules?
For example, i have to change /etc/udev/rules.d/70-persistent-net.rules file because my notebook generates an interface every time I booted, eth0,...,eth20...(very rare!).
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.
# PCI device 0x8086:0x4232 (iwlagn)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:ee:66:a8:ff", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
RegardsThere are people trying to avoid mistakes and another that tries to target.


Reply With Quote
