R1(f0/0)--(f0/0)R2
R1 is dhcp server
R2 f0/0
-if)ip address dchp
R1 ---R2 should be eigrp neighbor
before R2 get the ip address for F0/0 from R1 ,R2 dont konw which "x.x.x.x" to "network " in eigrp.
except using "network 0.0.0.0 0.0.0.0 ",what else can be done to do this ?
There is a method of using EEM (action regexp) to implement this,but is there any other simple methods for these ?
I ever tried to use secondary IP address to "activate the interface for eigrp",but
R23(config-if)#ip add 200.200.200.200 255.255.255.0 sec
Secondary addresses not allowed with DHCP addresses
It seems secondary IP address cant be used with ip address dhcp
#################
This works :
R24#sh run int f0/0
ip address 23.23.23.23 255.255.255.0 secondary
ip address 24.0.0.2 255.255.255.0
router eigrp 2345
passive-interface Loopback0
network 23.23.23.23 0.0.0.0
no auto-summary
eigrp router-id 4.4.4.4
R24#sh ip eigrp nei | inc Fa0/0
2 24.0.0.1 Fa0/0 13 00:03:48 854 5000 0 87
R24#
R23#sh run int f0/0
interface FastEthernet0/0
ip address 23.23.23.23 255.255.255.0 secondary
ip address 24.0.0.1 255.255.255.0
router eigrp 2345
network 23.23.23.23 0.0.0.0
no auto-summary
eigrp router-id 3.3.3.3
R23#sh ip eigrp nei | inc Fa0/0
2 24.0.0.2 Fa0/0 10 00:04:27 99 594 0 97
R23#
but secondary IP address cant be used with IP address dhcp.------------How to solve this?
#################