03-24-2014 02:44 PM - edited 03-07-2019 06:50 PM
Hi guys, currently learning CCNA. Stuck with a small probem. I have a 1760 Router that I have configured as a DHCP server to the VLAN's on my switch. I have followed all the instructions that I have found but unfortunately the switch is just not getting assigned the ip addresses. Can anyone help me please.
Here is my router config
Current configuration : 6971 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SunrayR
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.20.1
ip dhcp excluded-address 192.168.30.1
!
ip dhcp pool LAN10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
!
ip dhcp pool LAN20
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
!
ip dhcp pool LAN30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
!
!
!
!
!
interface FastEthernet0/0
no ip address
speed 100
full-duplex
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
no snmp trap link-status
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
no snmp trap link-status
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
no snmp trap link-status
!
interface Serial0/0
no ip address
shutdown
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
!
!
no ip http server
no ip http secure-server
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
password ********
logging synchronous
login
line aux 0
line vty 0 4
exec-timeout 0 0
password ********
logging synchronous
login
transport input ssh
line vty 5 15
exec-timeout 0 0
password ********
logging synchronous
login
transport input ssh
!
end
Special thanks in advance.
Solved! Go to Solution.
03-25-2014 02:06 PM
Again thank you so much. Would have taken me forever to spot that. Hopefully.....on day.......i get to be half as good as some of guys on here. One hurdle complete 1001 lef to go.
03-25-2014 01:01 PM
Port 1 in my switch which is in native vlan 1 is connected to fa0/0 on the router.
Not sure what you mean by this ie. the port should be configured as a trunk.
Which specific port on the switch connects to the router ?
Also which port is the client connected to ?
Jon
03-25-2014 01:20 PM
Sorry my mistake. fa0/1 on the switch is configured as a dot1q trunk and connected to fa0/0 on the router. The client pc is connected to fa0/2 on the switch which is configured as an access port and in vlan10.
03-25-2014 12:42 PM
I just checked your switch configuration. you need to assign an IP address to each SVIs. Assign .2 IP address on each SVI.
ROUTER <----> SWITCH
Router will be tagging VLAN 10,20,30 traffic and using .1 IP address
Your switch also needs to tag the traffic and send it to Router using SVIs.
Also, do not use 'ip default-gateway' -> this is for L2 switch
Use 'ip route 0.0.0.0 0.0.0.0 next-hop' for L3 switches
Thanks,
G1
03-25-2014 12:56 PM
The router is doing the inter vlan routing not the switch so -
1) the SVIs should be left shutdown and do not need IP addresses
2) you should use "ip default-gateway" because the switch is acting as a L2 switch and not L3
Jon
03-25-2014 01:01 PM
03-25-2014 01:31 PM
My equipment consists of a cisco 1760 router and a cisco layer '2' switch, so svi's are not an option.
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