cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1346
Views
0
Helpful
6
Replies
SDWorx_2
Beginner

DHCP-address on interface (Catalyst 6500)

Hi all,

We would like to connect an ISP (small DSL line) to a 6500 switch. We have 2 kinds of Catalysts and thus 2 possibilities:

1) the old one where the Switch runs on CatOS and the MSFC runs on IOS (12.1(8a)E4)

2) the new one runs on IOS 12.2(18)SXF

Possibility 1) we would configure an interface Vlan x and the address of this interface has to be assigned with DHCP (ISP requires this). On the switch then we would assign a port in this particular vlan and connect the modem to this port.

Problem: it is not possible to assign a DHCP-address to this interface.

Possibility 2) we would like to make an interface a L3 interface (no switchport) and give this interface an address through DHCP as in 1). But this is not possible, we can only assign an interface a static address.

Routing and NATing is also configured so the only problem is the dynamic address-assignment.

Is there any solution for this problem?

Thank you.

Jan

6 REPLIES 6
bjornarsb
Enthusiast

Hi,

It depends on your L3 switch.

On our WS-C3560G-24TS it is possible:

(config)#interface Vlan1000

(config-if)#ip add

(config-if)#ip address ?

A.B.C.D IP address

dhcp IP Address negotiated via DHCP

But non of our 6500s support it.

If you pay a small fee, they will give you a static one.

Regards,

Bjornarsb

Hi,

Another remark. We indeed have a static IP address and are paying this small fee. But this address is assigned through DHCP, the ISP knows our MAC-address and always gives us the same address.

I asked if it is possible to configure this address statically on our interface but they do not recommend this.

Regards,

Jan

ankbhasi
Cisco Employee

Hi Jan,

Can you give this a try

interface vlan x

ip address dhcp

or

interface

no switchport

ip address dhcp

I believe it should work as it works on some lower end switch like 3750 but I will confirm this for you if Cat6k supports or not.

HTH

Ankur

*Pls rate all helpfull post

Hi,

Thanks for the quick responses.

The problem is there the IOS's seem to not support DHCP:

1)

RANT_05_1(config)#int vlan 224

RANT_05_1(config-if)#ip address ?

A.B.C.D IP address

RANT_05_1(config-if)#ip address

2)

SANT_45(config)#int gi11/27

SANT_45(config-if)#no switchport

SANT_45(config-if)#ip address ?

A.B.C.D IP address

SANT_45(config-if)#ip address

On routers we can configure the interfaces to receive their addresses through DHCP, but appearantly not on these Catalysts...

Regards,

Jan

mohammedmahmoud
Advisor

Hi,

I think that i've done this before on my 6K which is running IOS Release 12.2(18)SXF:

interface x

no switchport

ip address dhcp

HTH, please do rate all helpful replies,

Mohammed Mahmoud.

Hi,

Ok i remembered something about not all SPAs supporting the DHCP option under the interface.

HTH, please do rate all helpful replies,

Mohammed Mahmoud.