AW: changing ethernetcard name

Steve Bertrand iaccounts at ibctech.ca
Thu Jun 3 07:37:45 PDT 2004


Thomas May said:
> Thanx for your answer, we want to use that because we dont want to change
> our firewall scripts at every time we change our hardware ...
>

In your script you can perform the same task. In the variable section, you
can simply do:

eth0="xl0"

and then, if you refer to your nics as in/out interfaces, any further
existing lines like this:

oif="eth0"
iif="eth1"

would still be effective. (so long as they are placed below the line(s)
above)

~sb


> thomas
>
> -----Ursprüngliche Nachricht-----
> Von: Steve Bertrand [mailto:iaccounts at ibctech.ca]
> Gesendet: Donnerstag, 3. Juni 2004 15:48
> An: Thomas May
> Betreff: Re: changing ethernetcard name
>
>> Could I rename the cards as follow ?
>>  xl0 = eth0 , xl1 = eth1, and em0 = eth3 ?
>>
>
> For what purpose? If you simply want to do this for clarity of use at the
> command line, you could create name aliases in your login profile. (ie:
> alias xl0 eth0).
>
> If this is not what you want it for, then someone else will have to
> suggest a solution because I don't know if it can be done or not any other
> way.
>
> ~sb
>
>
>>
>>
>> Thanx
>>
>>
>>
>>
>>
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe at freebsd.org"
>>
>
>
>



More information about the freebsd-questions mailing list