I believe I have an easy question. I have a Cisco 1751 router that I am currently using as a router-on-a-stick because I have only 1 Ethernet port and that has 4 sub interfaces on it. Currently, I have this in a little lab area with no access to an external network. I was trying to set this up to obtain an IP address automatically, so just to try it out, I unplugged my 2950 switch from the ethernet port on the router, plugged a cable from the router into the network where I currently gain access to internet from my PC. There is a DHCP server on the network, so I set the router up to obtain an IP through DHCP:
interface FastEthernet0/0
ip address dhcp
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 2 native
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.3
encapsulation dot1Q 3
ip address 192.168.168.254 255.255.255.0
!
interface FastEthernet0/0.4
encapsulation dot1Q 4
ip address 10.10.0.1 255.255.255.0
!
interface FastEthernet0/0.5
encapsulation dot1Q 5
ip address 10.10.1.1 255.255.255.0
However, after plugging into the network and waiting a while, the router doesn't obtain any IP address. What else do I need to know or what am I doing wrong?
Thanks!
interface FastEthernet0/0
ip address dhcp
speed auto
!
interface FastEthernet0/0.2
encapsulation dot1Q 2 native
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.3
encapsulation dot1Q 3
ip address 192.168.168.254 255.255.255.0
!
interface FastEthernet0/0.4
encapsulation dot1Q 4
ip address 10.10.0.1 255.255.255.0
!
interface FastEthernet0/0.5
encapsulation dot1Q 5
ip address 10.10.1.1 255.255.255.0
However, after plugging into the network and waiting a while, the router doesn't obtain any IP address. What else do I need to know or what am I doing wrong?
Thanks!