Catalyst4003的三层配置举例

王朝other·作者佚名  2008-05-19
宽屏版  字体: |||超大  

version 12.0

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname bang-rp

!

!

ip subnet-zero

!

!

!

interface Port-channel1

!--- this interface is configured for dot1q routing with native vlan 1 to match supervisor configuration.

no ip redirects

no ip directed-broadcast

hold-queue 300 in

!

interface Port-channel1.2

encapsulation dot1Q 2

ip address 2.2.2.2 255.255.255.0

no ip redirects

no ip directed-broadcast

!

interface Port-channel1.3

encapsulation dot1Q 3

ip address 1.1.1.2 255.255.255.0

no ip redirects

no ip directed-broadcast

!

interface FastEthernet1

!--- this is the out of band interface that you can use for management

no ip address

no ip directed-broadcast

shutdown

!

interface GigabitEthernet1

ip address 3.3.3.2 255.255.255.0

no ip directed-broadcast

!

interface GigabitEthernet2

no ip address

no ip directed-broadcast

shutdown

!

interface GigabitEthernet3

no ip address

no ip directed-broadcast

no negotiation auto

channel-group 1

!--- both port gig 3 and gig 4 are part of the channel-group 1

!

interface GigabitEthernet4

no ip address

no ip directed-broadcast

no negotiation auto

channel-group 1

!--- both port gig 3 and gig 4 are part of the channel group 1

!

router eigrp 1

passive-interface FastEthernet1

network 1.0.0.0

network 2.0.0.0

network 3.0.0.0

!

ip classless

!

arp 127.0.0.2 0050.732a.f300 ARPA

!

line con 0

transport input none

line aux 0

line vty 0 4

login

!

end

bang-rp#sh cdp nei

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater

Device ID Local Intrfce Holdtme Capability

Platform Port ID

liki Gig 1

160 T S

WS-C3508G-Gig 0/1

Liki is connected to gig 1 on the router. We only see liki from the router, we do not see it from the supervisor.

JAB02380AYG(bang)Port-channel1 148 T S WS-C4003 3/2

JAB02380AYG(bang)Port-channel1 147 T S WS-C4003 3/1

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有