cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
469
Views
0
Helpful
8
Replies

Dhcp wan isp

pcfreak49
Level 1
Level 1

I have switches 3560 i want two vlans vlan1 192.168.1.0 and vlan2 192.168.2.0 and a dhcp on the wan interface every time he gets a dhcp via the wan interface, these are shared to the interfaces, instead of the dhcp of The vlan

8 Replies 8

Hello,

I am not sure I understand what you mean by 'shared to the interfaces'. Can you post the config of one of the switches ?

Yes no problem, I do not know the ip address on the wan interface

Building configuration ...

Current configuration: 3556 bytes
!
! Last configuration change at 00:31:25 UTC Mon Mar 1 1993 by Tim
!
Version 12.2
No service path
Service timestamps debug datetime msec
Service timestamps log datetime msec
No service password-encryption
!
Hostname SW2
!
Boot-start marker
Boot-end marker
!
!
!
Username Tim privilege 15 secret 5 $ 1 $ pR6G $ gTdHT07OFYE888rrPNA58 /
No aaa new model
System mtu routing 1500
Ip routing
!
Ip dhcp excluded address 192.168.3.1 192.168.3.2
Ip dhcp excluded address 192.168.2.1 192.168.2.2
!
Ip dhcp pool vlan1
   Import all
   Network 192.168.3.0 255.255.255.0
   Default router 192.168.3.1
   Dns server 192.168.3.1
   Netbios name server 192.168.3.1
!
Ip dhcp pool vlan2
   Import all
   Network 192.168.4.0 255.255.255.0
   Default router 192.168.4.1
   Dns server 192.168.4.1
!
!
Ip dhcp server 84.198.240.1
!
!
Crypto pki trustpoint TP-self-signed-1299906304
 Enrollment selfsigned
 Subject-name cn = IOS-Self-Signed-Certificate-1299906304
 Revocation check none
 Rsakaypair TP-self-signed-1299906304
!
!
Crypto pki certificate chain TP-self-signed-1299906304
 Certificate self-signed 01
  3082023B 308201A4 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
  31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
  69666963 6174652D 31323939 39303633 3034301E 170D3933 30333031 30303030
  35395A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
  4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 32393939
  30363330 3430819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
  8100ECD4 F81BA2CB D412B806 840D4CD4 46C4C6E2 2FE5F8CB 04B4AD12 BDB0DDD4
  55DFE06C 072F20B9 14A07B68 3E39AF88 1DCF44C3 7A445D2D 4D0BFF25 17D7560D
  F3C754DE 208E5DE5 120AFFC1 51799245 089D2332 B6EA1E8D 8C2B7FA4 9BA45A1F
  E41A8471 7E28000D 3E355D20 057C0056 7857072F 634A85A9 580BAB05 8F4A5697
  93FF0203 010001A3 63306130 0F060355 1D130101 FF040530 030101FF 300E0603
  551D1104 07300582 03535732 301F0603 551D2304 18301680 14C30A64 612C85BD
  2F50B8BF 74EFA687 98B60037 71301D06 03551D0E 04160414 C30A6461 2C85BD2F
  50B8BF74 EFA68798 B6003771 300D0609 2A864886 F70D0101 04050003 818100B9
  2B26D49A F4D380D4 4527AF45 6EECCF80 9AD32550 C194EFBF 581E0640 4BC26F20
  D1575D8C B72F8415 3EE06C28 C4BF47AF 65724BDB 419F714E 7E046BAB 2B1BC7C0
  359FDF75 7AAFA07E 644DAF54 A3236394 311E0E3A 4BD8D649 C532859A 6E2F533C
  CC0F0537 7243B9C9 D15D8687 75A8856F C24116F7 972ABDE2 94588332 F8841E
        Quit
!
!
!
Tension-tree fashion pvst
Tension-tree extend system id
!
Vlan internal allocation policy ascending
!
Ip ssh rsa keypair name SW2.curist.local
Ip ssh version 2
!
!
!
!
!
!
Interface FastEthernet0 / 1
 Switchport access vlan 2
!
Interface FastEthernet0 / 2
!
Interface FastEthernet0 / 3
!
Interface FastEthernet0 / 4
!
Interface FastEthernet0 / 5
!
Interface FastEthernet0 / 6
!
Interface FastEthernet0 / 7
!
Interface FastEthernet0 / 8
!
Interface GigabitEthernet0 / 1
 Ip dhcp client client id GigabitEthernet0 / 1
!
Interface Vlan1
 Ip address 192.168.3.1 255.255.255.0
 Ip access group ACLG_IPV4
!
Interface Vlan2
 Ip address 192.168.4.1 255.255.255.0
!
Interface Vlan3
 Ip address 84.198.243.45 255.255.240.0
!
Ip http server
Ip http secure server
!
!
!
Ip access list extended ACLG_IPV4
 Permit ip 192.168.3.0 0.0.0.255 any
!
Logging esm config
!
!
!
Line con 0
Line vty 0 4
 Privilege level 15
 Login local
 Transport input all
 Transport output all
Line vty 5 15
 Privilege level 15
 Login local
 Transport input all
 Transport output all
!
End

Hello,

I assume this is the WAN interface ?

Interface GigabitEthernet0 / 1
 Ip dhcp client client id GigabitEthernet0 / 1

The connection is likely PPPoE, so try:

Interface GigabitEthernet0 / 1
 Ip address dhcp

It does not work

Hello,

can you try the below:

interface Dialer1
 dialer pool 1
 encapsulation ppp
 ip address negotiated

interface GigabitEthernet0/1
 no ip address
 pppoe-client dial-pool-number 1

No, this does not work either

Hello,

what do you have connected to GigabitEthernet0/1, a cable modem ?

Yes, the interface GigabitEthernet0 / 1 is connected to a cabel modem, every time a dhcp gets the ip's are distributed to all ports, so my vlan's are no longer working

Review Cisco Networking for a $25 gift card