Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • thắc mắc ...

    Catalyst 3550 (Catalyst 3550-48 Switch)
    Cat3550#show running-config Building configuration...Current configuration : 3092 bytes!version 12.1no service single-slot-reload-enableno service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Cat3550!!ip subnet-zero!--- Enable IP routing for interVLAN routing.ip routing!!!spanning-tree extend system-id!!!interface FastEthernet0/1 no ip address!!--- Output suppressed.!interface FastEthernet0/5 description to SERVER_1!--- Configure the server port to be in the server VLAN, VLAN 3.switchport access vlan 3!--- Configure the port to be an access port to prevent trunk negotiation delays. switchport mode access no ip address!--- Configure PortFast for initial Spanning Tree Protocol (STP) delay. Refer to!--- Using PortFast and Other Commands to Fix Workstation Startup Connectivity Delays!--- for more information.spanning-tree portfast!!--- Output suppressed.!interface FastEthernet0/48 description To Internet_Router!--- The port that connects to the router converts into a routed (L3) port.no switchport!--- Configure the IP address on this port. ip address 200.1.1.1 255.255.255.252!interface GigabitEthernet0/1 description To 2950!--- Configure IEEE 802.1 (dot1q) trunking, with negotiation, on the L2 switch.!--- If there is not support for Dynamic Trunking Protocol (DTP) on the far switch, !--- issue the switchport mode trunk command to force the switch port to trunk mode.!--- Note: The default trunking mode is dynamic auto. If you establish a trunk link !--- with the default trunking mode, the trunk does not appear!--- in the configuration, even though a trunk has been established on !--- the interface. Use the show interfaces trunk command to verify the !--- establishment of the trunk. switchport trunk encapsulation dot1q no ip address!interface GigabitEthernet0/2 description To 2948G switchport trunk encapsulation dot1q no ip address!interface Vlan1 no ip address shutdown!interface Vlan2 description USER_VLAN!--- This IP address is the default gateway for users. ip address 10.1.2.1 255.255.255.0!interface Vlan3 description SERVER_VLAN!--- This IP address is the default gateway for servers.ip address 10.1.3.1 255.255.255.0!interface Vlan10 description MANAGEMENT_VLAN!--- This IP address is the default gateway for other L2 switches. ip address 10.1.10.1 255.255.255.0!ip classless!--- This route statement allows the 3550 to send Internet traffic to !--- the default router which, in this case, is the 7200VXR (Fe 0/0 interface).ip route 0.0.0.0 0.0.0.0 200.1.1.2ip http server!!!line con 0line vty 5 15!endNote: Since the 3550 has configuration as a VLAN Trunk Protocol (VTP) server, the switch does not display the VTP configuration. This behavior is standard. This switch uses these commands to create a VTP server with the three VLANs that the user defined from global configuration mode:
    Cat3550(config)#vtp domain ciscoCat3550(config)#vtp mode serverCat3550(config)#vlan 2Cat3550(config-vlan)#name USER_VLANCat3550(config-vlan)#exitCat3550(config)#vlan 3Cat3550(config-vlan)#name SERVER_VLANCat3550(config-vlan)#exitCat3550(config)#vlan 10Cat3550(config-vlan)#name MANAGEMENT
    Catalyst 2950 (Catalyst 2950G-48 Switch)
    Cat2950#show running-config Building configuration...Current configuration : 2883 bytes!version 12.1no service single-slot-reload-enableno service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Cat2950!!ip subnet-zero!spanning-tree extend system-id!!interface FastEthernet0/1 no ip address!!--- Output suppressed.interface FastEthernet0/16 no ip address!interface FastEthernet0/17 description SERVER_2 switchport access vlan 3 switchport mode access no ip address spanning-tree portfast!!--- Output suppressed.!interface FastEthernet0/33 description HOST_1!--- Configure HOST_1 to be the user VLAN, VLAN 2. switchport access vlan 2 switchport mode access no ip address spanning-tree portfast!!--- Output suppressed.interface GigabitEthernet0/1 switchport trunk encapsulation dot1q no ip address!interface GigabitEthernet0/2 no ip address!interface Vlan1 no ip address no ip route-cache shutdown!interface Vlan10 description MANAGEMENT!--- This IP address manages this switch. ip address 10.1.10.2 255.255.255.0 no ip route-cache!!--- Configure the default gateway so that the switch is reachable from other!--- VLANs/subnets. The gateway points to the VLAN 10 interface on the 3550.ip default-gateway 10.1.10.1ip http server!!line con 0line vty 5 15!end


    Note: Since the Catalyst 2950 has configuration as a VTP client, the switch does not display the VTP configuration. This behavior is standard. The 2950 acquires the VLAN information from the VTP server, which is the 3550. This 2950 switch uses these commands to make the switch a VTP client in the VTP domain cisco from global configuration mode:
    Cat2950(config)#vtp domain ciscoCat2950(config)#vtp mode client
    <A name=config3>Catalyst 2948G Switch
    Cat2948G> (enable) show config This command shows non-default configurations only.Use 'show config all' to show both default and non-default configurations................................begi n!# ***** NON-DEFAULT CONFIGURATION *****!!#time: Fri Jun 30 1995, 05:04:47 !#version 6.3(10)!!#system web interface version(s)!#test!#systemset system name Cat2948G! #frame distribution methodset port channel all distribution mac both!#vtp!--- Configure the VTP domain to be the same as the 3550, the VTP server.set vtp domain cisco!--- Choose the VTP mode as client for this switch.set vtp mode client!#ip!--- Configure the management IP address in VLAN 10.set interface sc0 10 10.1.10.3/255.255.255.0 10.1.10.255set interface sl0 downset interface me1 down!--- Define the default route so that the switch is reachable.set ip route 0.0.0.0/0.0.0.0 10.1.10.1 !#set boot commandset boot config-register 0x2set boot system flash bootflash:cat4000.6-3-10.bin!#module 1 : 0-port Switching Supervisor!#module 2 : 50-port 10/100/1000 Ethernet!--- Configure HOST_2 and SERVER_3 ports in respective VLANs.set vlan 2 2/2set vlan 3 2/23set port name 2/2 To HOST_2set port name 2/23 to SERVER_3!--- Configure trunk to 3550 with dot1q encapsulation.set trunk 2/49 desirable dot1q 1-1005end


    Đây là cấu hình chuẩn mà tôi lấy được từ Cisco , tuy nhiên tôi vẫn còn thắc mắc ở chổ cấu hình con Catalyst 2950 , ở đây VLAN10 là VLAN quản lý, tuy nhiên Catalyst 2950 là SW layer 2, nhưng ở đây tại sao ta vẫn có thể gán ip address cho interface VLAN 10, vì sw layer 2 làm việc ở địa chỉ MAC

    interface Vlan10
    description MANAGEMENT

    !--- This IP address manages this switch.

    ip address 10.1.10.2 255.255.255.0
    no ip route-cache
    !

    -- Configure the default gateway so that the switch is reachable from other
    !--- VLANs/subnets. The gateway points to the VLAN 10 interface on the 3550.


    ip default-gateway 10.1.10.1

  • #2
    sao bạn hỏi nhiều box thế nhỉ ? interface vlan là 1 interface ảo dùng để quản lí (telnet ) thôi bạn àh .
    Ngô Đào Anh Trí, CCVP in progress.
    Email: ngodaoanhtri@wimaxpro.org

    Comment

    Working...
    X