Change MAC address of LAN card in rc.conf. How?

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default Change MAC address of LAN card in rc.conf. How?


    Hi,

    I'm running 5.3 STABLE.

    I need to change the MAC address of my PC.

    I know it can be done like this:

    ifconfig rl0 ether 11:22:33:44:55:66

    So I guessed I could make life a little easier by
    adding this in my /etc/rc.conf file as:

    ifconfig_rl0="inet 192.168.123.2 netmask 255.255.255.0
    ether 11:22:33:44:55:66"

    However, this does not seem to work. No IP address
    is assigned to the LAN card after bootup.
    Apparently something is wrong here.
    Any idea how I can do this at bootup?

    Thanks,
    Rob.

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    [url]http://mail.yahoo.com[/url]
    Rob Guest

  2. Similar Questions and Discussions

    1. Fixed IP address and resolv.conf problem
      Hello I'm probably doing something really daft here. I've just switched from using DHCP (ip provided by my router) to a static IP address...
    2. Change URL Address?
      Hello, we are developing our website for Search Engine Optimization. Part of our strategy involves using key search words in the URL addresses. We...
    3. Change e-mail address
      How do I change my e-mail address for these forums? I didn't see it in my options.
    4. How to change MAC address under hp-ux 10.2?
      Hi, is it possible to change the MAC address of a NIC under hp-ux 10.2? Ifconfig does not have the required option. Thanks for any hints ...
    5. cant get my IP address to change
      I have recently lost my connection with the internet trough my cable modem. So i figurd it was the modem so i bought a new one and installed it.Its...
  3. #2

    Default Re: Change MAC address of LAN card in rc.conf. How?

    On Sun, 27 Feb 2005 05:54:49 -0800 (PST), Rob <spamrefuse@yahoo.com> wrote:
    >
    > Hi,
    >
    > I'm running 5.3 STABLE.
    >
    > I need to change the MAC address of my PC.
    >
    > I know it can be done like this:
    >
    > ifconfig rl0 ether 11:22:33:44:55:66
    >
    > So I guessed I could make life a little easier by
    > adding this in my /etc/rc.conf file as:
    >
    > ifconfig_rl0="inet 192.168.123.2 netmask 255.255.255.0
    > ether 11:22:33:44:55:66"
    >
    > However, this does not seem to work. No IP address
    > is assigned to the LAN card after bootup.
    > Apparently something is wrong here.
    > Any idea how I can do this at bootup?
    >
    echo 'ifconfig rl0 ether 11:22:33:44:55:66' >/etc/start_if.rl0

    =Adriaan=
    J65nko BSD Guest

  4. #3

    Default Re: Change MAC address of LAN card in rc.conf. How?

    Rob wrote:
    > I'm running 5.3 STABLE.
    >
    > I need to change the MAC address of my PC.
    >
    > I know it can be done like this:
    >
    > ifconfig rl0 ether 11:22:33:44:55:66
    >
    > So I guessed I could make life a little easier by
    > adding this in my /etc/rc.conf file as:
    >
    > ifconfig_rl0="inet 192.168.123.2 netmask 255.255.255.0
    > ether 11:22:33:44:55:66"
    >
    > However, this does not seem to work. No IP address
    > is assigned to the LAN card after bootup.
    > Apparently something is wrong here.
    > Any idea how I can do this at bootup?
    ifconfig_rl0_alias0="ether 11:22:33:44:55:66"

    --
    [WBR], Arcade. [SAT Astronomy/Think to survive!]

    Volodymyr Kostyrko Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139