Anyone know how I can multinet an interface and also use DHCP client?
Situation: cable modem connected to ge-0/0/0. DHCP needed to obtain lease from ISP. But, the cable modem is managed at 192.168.100.1/24, so an IP in that subnet is needed to view management info. Trying to set both a static IP and dhcp-client results in a config error. If I set the DHCP assigned address as a static IP, everything works as it should, except the ISP is eventually going to get upset because there are no DHCP renewals for that IP and I'd expect that to cause a problem at some point.
I want something like this, but it results in a "'dhcp-client' Incompatible with interface assigned with address" complaint.
set interfaces ge-0/0/0 description "External Cable Modem" set interfaces ge-0/0/0 enable set interfaces ge-0/0/0 unit 0 family inet address 192.168.100.11/24 set interfaces ge-0/0/0 unit 0 family inet dhcp-client retransmission-attempt 6 set interfaces ge-0/0/0 unit 0 family inet dhcp-client retransmission-interval 40 set interfaces ge-0/0/0 unit 0 family inet dhcp-client update-server
I also tried creating L3 VLANs, but it won't let me assign more than one to an access (untagged) interface.
Edit: Well, it's butt-ugly, but instead of blackholing just 192.168.0.0/16, I did this, which at least lets it work via the default route:
static { route 10.0.0.0/8 discard; route 172.16.0.0/12 discard; route 192.168.0.0/18 discard; route 192.168.64.0/19 discard; route 192.168.96.0/22 discard; route 192.168.101.0/24 discard; route 192.168.102.0/23 discard; route 192.168.104.0/21 discard; route 192.168.112.0/20 discard; route 192.168.128.0/17 discard; }