Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
baselayout bloats
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Aug 27, 2005 7:22 am    Post subject: baselayout bloats Reply with quote

I don't get it. :(

In /etc/conf.d/net.example:
Quote:
...
# MAC changer
# For changing MAC addresses emerge net-analyzer/macchanger

# - to set a specific MAC address
#mac_eth0="00:11:22:33:44:55"
...

Now, in my view, this leads to confusion because you absolutely have no needs of macchanger if it's only to set a specific mac address, right?
Quote:
ifconfig_eth1=( "1.2.3.4 broadcast 1.2.3.255 netmask 255.255.255.0 hw ether 00:04:E2:AA:BB:CC mtu 1496" )



_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
ph03n1x
l33t
l33t


Joined: 06 Feb 2003
Posts: 756

PostPosted: Sat Aug 27, 2005 9:27 am    Post subject: Reply with quote

Yeah you can changer your mac with ifconfig why should one emerge a program for it. Sorry but reminds me a bit of windows... :(
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3940
Location: Hamburg

PostPosted: Sat Aug 27, 2005 11:11 am    Post subject: Reply with quote

ph03n1x wrote:
Yeah you can changer your mac with ifconfig
Eehm, and how do you do that with ifconfig ?
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Aug 27, 2005 4:06 pm    Post subject: Reply with quote

toralf wrote:
ph03n1x wrote:
Yeah you can changer your mac with ifconfig
Eehm, and how do you do that with ifconfig ?
Code:
ifconfig ethX hw ether AA:BB:CC:DD:EE:FF

Quoting the man page:
Quote:
hw class address
Set the hardware address of this interface, if the device driver supports this operation. The keyword must be followed by the
name of the hardware class and the printable ASCII equivalent of the hardware address. Hardware classes currently supported
include ether (Ethernet), ax25 (AMPR AX.25), ARCnet and netrom (AMPR NET/ROM).

_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3940
Location: Hamburg

PostPosted: Sat Aug 27, 2005 6:23 pm    Post subject: Reply with quote

Ah, thanks.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Aug 30, 2005 6:53 am    Post subject: Reply with quote

That's all well and good for ifconfig, but the same command will not work when using iproute2. If you insist on not emerging macchanger,here's a way that works with both

Code:

mtu_eth1="1492"

preup() {
   if [[ ${IFACE} == "eth1" ]];
      interface_set_mac_address "${IFACE}" "00:04:E2:AA:BB:CC"
   fi
}


Requires baselayout-1.12.0_pre6 or newer
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum