On Tue, 5 Dec 2000, Cole Tuininga wrote:
FYI, in terms of ease-of-use, if your NICs (or, rather, the drivers for
same) support it, you can change your MAC addresses on the fly -- just
remember that having two identical MAC addresses talking on the same
subnet at the same time is a Bad Thing. (Changing on the fly does,
however, make swapping which PC is currently talking to a cable modem,
etc., much more convenient.) The way to do this:
# ifconfig eth1 down
# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:10:4B:68:86:62
[...]
# ifconfig eth1 hw ether 0:1:2:3:4:5:6
eth1 Link encap:Ethernet HWaddr 00:01:02:03:04:05
[...]
# ifconfig eth1 up
That way, you don't have to do nuttin' with swapping NICs, or playing
cable modem games. The change isn't permanent, and will vanish on reboot,
or if the module is unloaded, so, to make change "permanent," throw the
above into your /etc/rc.d/rc.local file.
-Ken
P.S. Bonus points given for making your MAC address say something spiffy
using the first six letters of the alphabet in combination with the ten
numerals. Kinda like vanity plates, but nerdier.
> One thing you
> should be aware of if you haven't had experience with cable modems
> before: When they set it up, the cable modem is set to key off the MAC
> address of the NIC it is initially connected to. So when you go to make
> use of the linux box, either you have to move the NIC to it, or (once you
> have the linux box up) you have to call MO/ATT to have them essentially
> reset the cable modem (no, power cycling it will not have the same
> effect).
>
> > I haven't found any good information yet on how I can set up
> > services on those two network cards (with different addresses)
> > differently. For instance, I may want to run DNS locally but not
> > externally, or I may want to have FTP or Apache configured differently
> > depending on the network. Does anyone have any good information on
> > this, or pointers to some?
>
> Making the assumption you know how to configure both NIC's (perhaps not a
> safe assumption?) the easiest way to limit services and such is to use
> tcpwrappers. man (8) tcpd will get you started.
>
> -Cole Tuininga
>
>
>
> **********************************************************
> To unsubscribe from this list, send mail to
> [EMAIL PROTECTED] with the following text in the
> *body* (*not* the subject line) of the letter:
> unsubscribe gnhlug
> **********************************************************
>
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************