01-24-2023 11:40 PM
Hi,
Can anyone share a configuration file of ISR C1121-8PLTEP workable config? Just need a VLAN on Gi0/1/1 and Gi0/1/3. Then DHCP pool on that vlan. To achieve if a terminal device(PC) connect to Gi0/1/1 or Gi0/1/3, it can get a DHCP ip address. I tried to config the Gi interface with ip address. Seems like this device not accept that. And the DHCP seems like not working as the Windows PC didn't get any ip from the Gi interface.
Thank you so much for helping
Solved! Go to Solution.
02-06-2023 11:42 AM - last edited on 02-06-2023 11:08 PM by Translator
Considering your request for DHCP i am writing my point of view.
Just configure vlan,SVI ,configure the IP address on that SVI ,remove the IP from loopback or delete loopback.So the device on vlan 100 can request IP from the router(DHCP SERVER).
vlan 100
!
Int vl100
ip add 192.168.0.1 255.255.255.0
ip nat inside
no shut
!
01-25-2023 01:13 AM - last edited on 02-06-2023 11:04 PM by Translator
Hello,
do you have a cellular or Ethernet connection at the WAN side ? Below is a sample config for connecting to Ethernet on the WAN side (important parts marked in bold). If that does not resemble what you have, post your current running configuration (sh run):
service timestamps debug datetime msec
service timestamps log datetime msec
platform qfp utilization monitor load 80
no platform punt-keepalive disable-kernel-core
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no aaa new-model
!
subscriber templating
!
multilink bundle-name authenticated
!
crypto pki certificate chain TP-self-signed-4175586959
!
diagnostic bootup level minimal
spanning-tree extend system-id
!
redundancy
mode none
!
controller Cellular 0/2/0
lte modem link-recovery disable
!
vlan internal allocation policy ascending
!
ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool LAN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
!
interface GigabitEthernet0/0/0
ip address dhcp
ip nat outside
negotiation auto
!
interface GigabitEthernet0/0/1
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet0/1/0
!
interface GigabitEthernet0/1/1
!
interface GigabitEthernet0/1/2
!
interface GigabitEthernet0/1/3
!
interface GigabitEthernet0/1/4
!
interface GigabitEthernet0/1/5
!
interface GigabitEthernet0/1/6
!
interface GigabitEthernet0/1/7
!
interface Cellular0/2/0
ip address negotiated
ipv6 enable
!
interface Cellular0/2/1
no ip address
shutdown
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
ip nat inside
!
ip nat inside source list 1 interface GigabitEthernet0/0/0 overload
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 dhcp
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
!
control-plane
!
line con 0
transport input none
stopbits 1
line vty 0 4
login
!
wsma agent exec
!
wsma agent config
!
wsma agent filesys
!
wsma agent notify
!
end
01-26-2023 10:25 PM - last edited on 02-06-2023 11:07 PM by Translator
Hi Georg,
Thank you so much for the reply. I have a Cellular 0/2/0 connected on the ISP side but not using the Gi0/0/0. All local flow comes from Gi0/1/1 and Gi0/1/3 in Vlan 100, then goes to the 4G ISP through Cellular 0/2/0. Here is the config
!
version 17.3
!
!
!
no ip dhcp conflict logging
ip dhcp excluded-address 192.168.0.1
!
ip dhcp pool testlocal
network 192.168.0.0 255.255.255.0
dns-server 8.8.8.8
default-router 192.168.0.1
!
!
!
controller Cellular 0/2/0
!
!
vlan internal allocation policy ascending
!
!
!
!
!
!
interface Loopback0
ip address 192.168.0.1 255.255.255.0
!
interface GigabitEthernet0/0/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet0/0/1
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet0/1/0
!
interface GigabitEthernet0/1/1
switchport access vlan 100
!
interface GigabitEthernet0/1/2
!
interface GigabitEthernet0/1/3
switchport access vlan 100
!
interface GigabitEthernet0/1/4
!
interface GigabitEthernet0/1/5
switchport access vlan 100
!
interface GigabitEthernet0/1/6
!
interface GigabitEthernet0/1/7
switchport access vlan 100
!
!
interface Cellular0/2/0
ip address negotiated
ip nat outside
dialer in-band
dialer-group 1
ipv6 enable
pulse-time 1
!
interface Cellular0/2/1
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
interface Vlan100
description testlocal
ip address dhcp
ip nat inside
!
ip http server
ip http authentication local
ip http secure-server
ip forward-protocol nd
ip nat inside source list 1 interface Cellular0/2/0 overload
ip route 0.0.0.0 0.0.0.0 Cellular0/2/0
!
!
dialer-list 1 protocol ip list 1
!
02-06-2023 11:42 AM - last edited on 02-06-2023 11:08 PM by Translator
Considering your request for DHCP i am writing my point of view.
Just configure vlan,SVI ,configure the IP address on that SVI ,remove the IP from loopback or delete loopback.So the device on vlan 100 can request IP from the router(DHCP SERVER).
vlan 100
!
Int vl100
ip add 192.168.0.1 255.255.255.0
ip nat inside
no shut
!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide