Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

home lab:trying to get isp to assign IP addresses

Status
Not open for further replies.

luke121108

Technical User
Jul 21, 2011
5
US
ok,I have set up one sub-interface 0/0.1 on a router for ip address DHCP, I can ping my routers other sub-interfaces 0/0.2,0/0.3 when I connect my pc to a switchport,and as a test i connected the ISP directly to the routers fa0/1(second port)and was able to get a IP assigned to it,but when I connect the ISP to switchport fa0/1 it wont assign a isp to the sub-interface 0/0.1.Any help out there


interface FastEthernet0/1
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 3
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/13
switchport access vlan 2
switchport mode access
spanning-tree portfast

!
interface FastEthernet0/24
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
description OUTSIDE VLAN
ip address 192.168.1.99 255.255.255.0
!
interface Vlan2
description VOICE VLAN
no ip address
!
interface Vlan3
description DATA VLAN

interface FastEthernet0/0.1
description OUTSIDE INTERFACE
encapsulation dot1Q 1 native
ip address dhcp
ip nat outside
ip virtual-reassembly
!
interface FastEthernet0/0.2
description VOICE LAN INTERFACE
encapsulation dot1Q 2
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/0.3
description DATA LAN INTERFACE
encapsulation dot1Q 3
ip address 192.168.3.1 255.255.255.128
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0.30
description WIRELESS
encapsulation dot1Q 30
ip address 192.168.3.129 255.255.255.128
ip nat inside
ip virtual-reassembly
no ip address













 
is this on the same device?
or you forgot to break apart the configuration of your switch and your router?


interface FastEthernet0/0.1
description OUTSIDE INTERFACE
encapsulation dot1Q 1 native
ip address dhcp
ip nat outside
ip virtual-reassembly

interface Vlan1
description OUTSIDE VLAN
ip address 192.168.1.99 255.255.255.0


We must go always forward, not backward
always up, not down and always twirling twirling towards infinity.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top