Configuring Dynamic IPv4 Address

Hi,
I have a dhcp server in my network and my computer is getting dhcp from my router.
Ive read the manual and it says that my network port is active but it needs to be configured
Ive configured it as manual online as dhcp but for some reason it's not getting an IP address.

Here is my config in rc.conf:

ifconfig_ue0='DHCP'

background_dhclient="YES"


Info about the system and the network adapter:
Version: 14.0-RELEASE
ifconfig:
ue0: flags=10088<UP,BROADCAST, RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
ether 00:1f:16:0f:27:5a
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Could anyone please advise.
Thanks
Dave
 
Hi gpw928, Emrion
Thanks for your help

Ive tried both methods suggested in /etc/rc.conf:

netwait_enable="YES"
netwait_timeout="10"
netwait_ip="10.0.0.1"
netwait_if="ue0"
&
ifconfig_ue0="SYNCDHCP"

but it says no DHCPOFFERS received after using service netif restart:

Starting dhclient.
ue0: no link ....May 13 06:50:17 freebsd dhclient[3648]: connection closed
May 13 06:50:17 freebsd dhclient[3648]: exiting.
got linkDHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Starting Network: 100 re0 uе0.


Thanks
 
The first thing I would do is try to bring up the interface manually.

Identify a free IP address on the ue0 subnet. Assuming that's 10.0.0.100, and that the netmask is 255.255.255.0, manually configure the interface with something like:
Code:
sudo ifconfig ue0 inet 10.0.0.100 netmask 255.255.255.0 up
Then see if you can ping the router, which I assume is 10.0.0.1.

If you can't, then show us the output of ifconfig -a, and install both tcpdump(1) and wireshark(1).

[I'm offline for a week, so will have to leave the follow-up to others.]
 
I have a dhcp server in my network and my computer is getting dhcp from my router.

Is that 'dhcp server' also your router or are you actually running 2 concurrent DHCP servers in your (the same) network? This won't work with consumer routers, they usually can only run as a single, authoritative server. Properly implemented DHCP servers usually shut up if they detect another server running in the same subnet, so worst case is both go silent and you don't get any lease.
 
Thanks all. After a few days observation it works consistenly now. I just simply change the brand new network adapter.
 
Back
Top