How can I change the MAC addresses ?



  • I have installed nanobsd 4GB on my Firebox III but the MAC are 00.00.00.00.00 .

    How can I set manually the MAC adresses ?

    Thanks.



  • Which MAC?
    Generally under: Interfaces –> Name_of_interface
    For the LAN you cannot set it in the GUI.



  • I have to change the MAC address of interfaces because freeBSD don't recognise them.

    I have to change the MAC address 00:00:00:00:00:00 for example into 11:22:33:44:55:66.



  • @Antonix:

    I have to change the MAC address of interfaces because freeBSD don't recognise them.

    It could help to have a bit more information about what you are seeing. If FreeBSD doesn't recognise your interfaces you probably won't be able to change the MAC addresses.



  • I have installed nanobsd 4GB on my Firebox III succesfully but the MAC address appears as 00:00:00:00:00:00.

    I can configure all with GUI interface of pfsense and I can assign the interface ip adresses.

    The problem is that all NIC are signed with Mac address 00:00:00:00:00:00 because of a non perfect recognition of NICs.

    When I configure the WAN interface as DHCP client, the interface don't receive correctly ip address from router/modem.

    I want to set manually the mac addresses of my NICs. How can I do ?



  • @Antonix:

    The problem is that all NIC are signed with Mac address 00:00:00:00:00:00 because of a non perfect recognition of NICs.

    Can you give me detail on "non perfect recognition of NICs"? Is it something reported during the startup? If so, please post the startup output.



  • Dec 26 22:31:14 pfSense syslogd: kernel boot file is /boot/kernel/kernel
    Dec 26 22:31:14 pfSense kernel: Copyright © 1992-2009 The FreeBSD Project.
    Dec 26 22:31:14 pfSense kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    Dec 26 22:31:14 pfSense kernel: The Regents of the University of California. All rights reserved.
    Dec 26 22:31:14 pfSense kernel: FreeBSD is a registered trademark of The FreeBSD Foundation.
    Dec 26 22:31:14 pfSense kernel: FreeBSD 7.2-RELEASE-p5 #0: Mon Dec  7 20:20:43 EST 2009
    Dec 26 22:31:14 pfSense kernel: sullrich@FreeBSD_7.2_pfSense_1.2.3_snaps.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_wrap.7.i386
    Dec 26 22:31:14 pfSense kernel: Timecounter "i8254" frequency 1193182 Hz quality 0
    Dec 26 22:31:14 pfSense kernel: CPU: AMD-K6(tm) 3D processor (300.68-MHz 586-class CPU)
    Dec 26 22:31:14 pfSense kernel: Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
    Dec 26 22:31:14 pfSense kernel: Features=0x8021bf <fpu,vme,de,pse,tsc,msr,mce,cx8,pge,mmx>Dec 26 22:31:14 pfSense kernel: AMD Features=0x80000800 <syscall,3dnow!>Dec 26 22:31:14 pfSense kernel: real memory  = 268435456 (256 MB)
    Dec 26 22:31:14 pfSense kernel: avail memory = 248635392 (237 MB)
    Dec 26 22:31:14 pfSense kernel: wlan: mac acl policy registered
    Dec 26 22:31:14 pfSense kernel: K6-family MTRR support enabled (2 registers)
    Dec 26 22:31:14 pfSense kernel: ACPI Error (tbxfroot-0308): A valid RSDP was not found [20070320]
    Dec 26 22:31:14 pfSense kernel: ACPI: Table initialisation failed: AE_NOT_FOUND
    Dec 26 22:31:14 pfSense kernel: ACPI: Try disabling either ACPI or apic support.
    Dec 26 22:31:14 pfSense kernel: cryptosoft0: <software crypto="">on motherboard
    Dec 26 22:31:14 pfSense kernel: padlock0: No ACE support.
    Dec 26 22:31:14 pfSense kernel: pcib0: <acerlabs m1541="" (aladdin-v)="" pci="" host="" bridge="">pcibus 0 on motherboard
    Dec 26 22:31:14 pfSense kernel: pir0: <pci 8="" interrupt="" routing="" table:="" entries="">on motherboard
    Dec 26 22:31:14 pfSense kernel: $PIR: Using invalid BIOS IRQ 15 from 0.14.INTA for link 0x4
    Dec 26 22:31:14 pfSense kernel: pci0: <pci bus="">on pcib0
    Dec 26 22:31:14 pfSense kernel: pcib1: <pci-pci bridge="">at device 1.0 on pci0
    Dec 26 22:31:14 pfSense kernel: pci1: <pci bus="">on pcib1
    Dec 26 22:31:14 pfSense kernel: isab0: <pci-isa bridge="">at device 7.0 on pci0
    Dec 26 22:31:14 pfSense kernel: isa0: <isa bus="">on isab0
    Dec 26 22:31:14 pfSense kernel: dc0: <macronix 10="" 98715aec-c="" 100basetx="">port 0xf800-0xf8ff mem 0xfedffc00-0xfedffcff irq 9 at device 11.0 on pci0
    Dec 26 22:31:14 pfSense kernel: miibus0: <mii bus="">on dc0
    Dec 26 22:31:14 pfSense kernel: dcphy0: <intel 21143="" nway="" media="" interface="">PHY 31 on miibus0
    Dec 26 22:31:14 pfSense kernel: dcphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    Dec 26 22:31:14 pfSense kernel: dc0: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: dc1: <macronix 10="" 98715aec-c="" 100basetx="">port 0xf400-0xf4ff mem 0xfedff800-0xfedff8ff irq 10 at device 12.0 on pci0
    Dec 26 22:31:14 pfSense kernel: miibus1: <mii bus="">on dc1
    Dec 26 22:31:14 pfSense kernel: dcphy1: <intel 21143="" nway="" media="" interface="">PHY 31 on miibus1
    Dec 26 22:31:14 pfSense kernel: dcphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    Dec 26 22:31:14 pfSense kernel: dc1: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: dc2: <macronix 10="" 98715aec-c="" 100basetx="">port 0xf000-0xf0ff mem 0xfedff400-0xfedff4ff irq 11 at device 13.0 on pci0
    Dec 26 22:31:14 pfSense kernel: miibus2: <mii bus="">on dc2
    Dec 26 22:31:14 pfSense kernel: dcphy2: <intel 21143="" nway="" media="" interface="">PHY 31 on miibus2
    Dec 26 22:31:14 pfSense kernel: dcphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    Dec 26 22:31:14 pfSense kernel: dc2: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: hifn0 mem 0xfedfd000-0xfedfdfff,0xfedfe000-0xfedfefff irq 15 at device 14.0 on pci0
    Dec 26 22:31:14 pfSense kernel: hifn0: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: hifn0: Hifn 7951, rev 0, 256KB dram
    Dec 26 22:31:14 pfSense kernel: vgapci0: <vga-compatible display="">mem 0xf8000000-0xfbffffff at device 15.0 on pci0
    Dec 26 22:31:14 pfSense kernel: atapci0: <acerlabs m5229="" udma33="" controller="">port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 16.0 on pci0
    Dec 26 22:31:14 pfSense kernel: ata0: <ata 0="" channel="">on atapci0
    Dec 26 22:31:14 pfSense kernel: ata0: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: ata1: <ata 1="" channel="">on atapci0
    Dec 26 22:31:14 pfSense kernel: ata1: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: pci0: <old, non-vga="" display="" device="">at device 17.0 (no driver attached)
    Dec 26 22:31:14 pfSense kernel: ohci0: <acerlabs m5237="" (aladdin-v)="" usb="" controller="">mem 0xfedfc000-0xfedfcfff irq 5 at device 20.0 on pci0
    Dec 26 22:31:14 pfSense kernel: ohci0: [GIANT-LOCKED]
    Dec 26 22:31:14 pfSense kernel: ohci0: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: usb0: OHCI version 1.0, legacy support
    Dec 26 22:31:14 pfSense kernel: usb0: <acerlabs m5237="" (aladdin-v)="" usb="" controller="">on ohci0
    Dec 26 22:31:14 pfSense kernel: usb0: USB revision 1.0
    Dec 26 22:31:14 pfSense kernel: uhub0: <acerlabs 1="" 9="" ohci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb0
    Dec 26 22:31:14 pfSense kernel: uhub0: 2 ports with 2 removable, self powered
    Dec 26 22:31:14 pfSense kernel: cpu0 on motherboard
    Dec 26 22:31:14 pfSense kernel: orm0: <isa option="" rom="">at iomem 0xc0000-0xc7fff pnpid ORM0000 on isa0
    Dec 26 22:31:14 pfSense kernel: ppc0: <parallel port="">at port 0x378-0x37f irq 7 on isa0
    Dec 26 22:31:14 pfSense kernel: ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
    Dec 26 22:31:14 pfSense kernel: ppbus0: <parallel port="" bus="">on ppc0
    Dec 26 22:31:14 pfSense kernel: ppbus0: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: ppi0: <parallel i="" o="">on ppbus0
    Dec 26 22:31:14 pfSense kernel: ppc0: [GIANT-LOCKED]
    Dec 26 22:31:14 pfSense kernel: ppc0: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
    Dec 26 22:31:14 pfSense kernel: sio0: type 16550A, console
    Dec 26 22:31:14 pfSense kernel: sio0: [FILTER]
    Dec 26 22:31:14 pfSense kernel: sio1 at port 0x2f8-0x2ff irq 3 on isa0
    Dec 26 22:31:14 pfSense kernel: sio1: type 16550A
    Dec 26 22:31:14 pfSense kernel: sio1: [FILTER]
    Dec 26 22:31:14 pfSense kernel: unknown: <pnp0c02>can't assign resources (memory)
    Dec 26 22:31:14 pfSense kernel: unknown: <pnp0c01>can't assign resources (memory)
    Dec 26 22:31:14 pfSense kernel: speaker0: <pc speaker="">at port 0x61 pnpid PNP0800 on isa0
    Dec 26 22:31:14 pfSense kernel: unknown: <pnp0501>can't assign resources (port)
    Dec 26 22:31:14 pfSense kernel: unknown: <pnp0501>can't assign resources (port)
    Dec 26 22:31:14 pfSense kernel: unknown: <pnp0400>can't assign resources (port)
    Dec 26 22:31:14 pfSense kernel: Timecounter "TSC" frequency 300683023 Hz quality 800
    Dec 26 22:31:14 pfSense kernel: Timecounters tick every 10.000 msec
    Dec 26 22:31:14 pfSense kernel: IPsec: Initialized Security Association Processing.
    Dec 26 22:31:14 pfSense kernel: ad0: FAILURE - SET_MULTI status=51 <ready,dsc,error>error=4 <aborted>Dec 26 22:31:14 pfSense kernel: ad0: 3927MB < 20070308> at ata0-master PIO4
    Dec 26 22:31:14 pfSense kernel: WARNING: Expected rawoffset 0, found 63
    Dec 26 22:31:14 pfSense kernel: WARNING: Expected rawoffset 0, found 3861711
    Dec 26 22:31:14 pfSense kernel: Trying to mount root from ufs:/dev/ufs/pfsense0
    Dec 26 22:31:14 pfSense kernel: pflog0: promiscuous mode enabled
    Dec 26 22:31:16 pfSense pftpx[408]: listening on 127.0.0.1 port 8021
    Dec 26 22:31:16 pfSense pftpx[408]: listening on 127.0.0.1 port 8021
    Dec 26 22:31:20 pfSense dnsmasq[516]: started, version 2.45 cachesize 150
    Dec 26 22:31:20 pfSense dnsmasq[516]: compile time options: IPv6 GNU-getopt BSD-bridge ISC-leasefile no-DBus no-I18N TFTP
    Dec 26 22:31:20 pfSense dnsmasq[516]: no servers found in /etc/resolv.conf, will retry
    Dec 26 22:31:20 pfSense dnsmasq[516]: no servers found in /etc/resolv.conf, will retry
    Dec 26 22:31:20 pfSense dnsmasq[516]: read /etc/hosts - 2 addresses
    Dec 26 22:31:25 pfSense php: : Creating rrd update script
    Dec 26 22:31:30 pfSense php: : Resyncing configuration for all packages.
    Dec 26 22:31:31 pfSense check_reload_status: check_reload_status is starting
    Dec 26 22:31:37 pfSense login: login on console as root
    Dec 26 22:33:11 pfSense sshd[984]: Accepted keyboard-interactive/pam for root from 192.168.2.80 port 2293 ssh2
    Dec 26 22:33:11 pfSense sshd[984]: subsystem request for sftp</aborted></ready,dsc,error></pnp0400></pnp0501></pnp0501></pc></pnp0c01></pnp0c02></parallel></parallel></parallel></isa></acerlabs></acerlabs></acerlabs></old,></ata></ata></acerlabs></vga-compatible></intel></mii></macronix></intel></mii></macronix></intel></mii></macronix></isa></pci-isa></pci></pci-pci></pci></pci></acerlabs></software></syscall,3dnow!></fpu,vme,de,pse,tsc,msr,mce,cx8,pge,mmx>



  • The startup reports
    @Antonix:

    Dec 26 22:31:14 pfSense kernel: dc0: <macronix 10="" 98715aec-c="" 100basetx="">port 0xf800-0xf8ff mem 0xfedffc00-0xfedffcff irq 9 at device 11.0 on pci0
    Dec 26 22:31:14 pfSense kernel: miibus0: <mii bus="">on dc0
    Dec 26 22:31:14 pfSense kernel: dcphy0: <intel 21143="" nway="" media="" interface="">PHY 31 on miibus0
    Dec 26 22:31:14 pfSense kernel: dcphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    Dec 26 22:31:14 pfSense kernel: dc0: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: dc1: <macronix 10="" 98715aec-c="" 100basetx="">port 0xf400-0xf4ff mem 0xfedff800-0xfedff8ff irq 10 at device 12.0 on pci0
    Dec 26 22:31:14 pfSense kernel: miibus1: <mii bus="">on dc1
    Dec 26 22:31:14 pfSense kernel: dcphy1: <intel 21143="" nway="" media="" interface="">PHY 31 on miibus1
    Dec 26 22:31:14 pfSense kernel: dcphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    Dec 26 22:31:14 pfSense kernel: dc1: [ITHREAD]
    Dec 26 22:31:14 pfSense kernel: dc2: <macronix 10="" 98715aec-c="" 100basetx="">port 0xf000-0xf0ff mem 0xfedff400-0xfedff4ff irq 11 at device 13.0 on pci0
    Dec 26 22:31:14 pfSense kernel: miibus2: <mii bus="">on dc2
    Dec 26 22:31:14 pfSense kernel: dcphy2: <intel 21143="" nway="" media="" interface="">PHY 31 on miibus2
    Dec 26 22:31:14 pfSense kernel: dcphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    Dec 26 22:31:14 pfSense kernel: dc2: [ITHREAD]</intel></mii></macronix></intel></mii></macronix></intel></mii></macronix>

    which suggests the NICs are recognised by the dc driver and that the problem is likely only that the driver can't (or doesn't) determine the MAC address for the NICs. Do you know what the MAC addresses should be?

    Generally MAC addresses can be set by shell command of the form:

    ifconfig dc0 link 00:01:02:03:04:05

    The command # ifconfig dc0 will show a number of parameters for interface dc0, including the MAC address.

    Would you please attempt to set the MAC address by command and verify it was set to the specified value. If that works you should be able to get somewhat further in getting your firewall to do useful things.

    I expect you will have to pursue this problem with the FreeBSD community. A quick google search didn't show any obvious evidence that anyone else has seen this problem.


Log in to reply