TR111 and TR069 function development note (2)

 use DHCP in Linux system

DHCP is the Dynamic Host Configuration Protocol,which allows a networked machine to obtain its IP address and other informationautomatically from a DHCP server.

There are two methods through which a Linux systemcan obtain an IP address using DHCP:
1. Kernel level configuration.
2. User level configuration.

Kernel level auto-configuration:

To use kernel level auto configurtion select belowoptions in the Linux kernel configuration.

-> Networking support (NET [=y])
-> Networking options
-> TCP/IP networking (INET [=y])
[*]   IP: kernel level autoconfiguration
[*]     IP: DHCP support

Advantage:
In case of your root file system in NFS and wanted to have a IP dynamicaly configirued though DHCP, kernel level DHCP will come to rescue you. Using kernel level DHCP you will have have a valid IP address by the time the Linuxkernel have completed the booting and can immediately mount an NFS root filesystem.

Disadvantage:
1. Can only configure basic network parameters, which do not include items suchas DNS servers.

User level auto-configuration

I will use DHCP client applet that comes Busyboxnamed udhcpc

As per Busybox:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值