11. 【Cisco】初心者ネットワーク勉強会@秋葉原UDX ルータのトランク設定
FORSE
手順5 設定を検証します。
手順6 設定を検証します。
Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet8 unassigned YES manual up up
GigabitEthernet8.1 192.168.100.4 YES manual up up
GigabitEthernet8.10 192.168.10.1 YES manual up up
GigabitEthernet8.20 192.168.20.1 YES manual up up
GigabitEthernet8.30 192.168.30.1 YES manual up up
Router#show ip route
Gateway of last resort is not set
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet8.10
L 192.168.10.1/32 is directly connected, GigabitEthernet8.10
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, GigabitEthernet8.20
L 192.168.20.1/32 is directly connected, GigabitEthernet8.20
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, GigabitEthernet8.30
L 192.168.30.1/32 is directly connected, GigabitEthernet8.30
192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.100.0/25 is directly connected, GigabitEthernet8.1
L 192.168.100.4/32 is directly connected, GigabitEthernet8.1
11
12. 【Cisco】初心者ネットワーク勉強会@秋葉原UDX スイッチの設定
FORSE
手順1
vlanを作成します
手順2
アクセスポートに指定して、vlanを割り当てます
手順3
同様にvlanを割り当てます。
手順4
トランクポートを作成します
手順5
結線して、少し待ちます
手順6
検証します
Switch(config)#interface range gigabitEthernet 0/1 - 3
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#interface gigabitEthernet 0/1
Switch(config-if)# switchport access vlan 10
Switch>enable
Switch#configure terminal
Switch(config)#vlan 10,20,30
Switch(config-vlan)#exit
Switch(config-if)#interface gigabitEthernet 0/2
Switch(config-if)# switchport access vlan 20
Switch(config-if)#interface gigabitEthernet 0/3
Switch(config-if)# switchport access vlan 30
Switch(config-if)#interface gigabitEthernet 0/8
Switch(config-if)#switchport mode trunk
Switch(config-if)#end
Switch#show interface trunk
Port Mode Encapsulation Status Native vlan
Gig0/8 on 802.1q trunking 1
Port Vlans allowed on trunk
Gig0/1 1-1005
Port Vlans allowed and active in management domain
Gig0/1 1,10,20,30
Port Vlans in spanning tree forwarding state and not pruned
Gig0/1 1,10,20,30
12
13. 【Cisco】初心者ネットワーク勉強会@秋葉原UDX スイッチの設定
FORSE
手順6
検証します。作成したVLANとアクセスポートの設定
手順7
VLANインターフェースのIPを確認します
手順8
デフォルトゲートウェイを確認します
Switch#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- ----------------------------
---
1 default active Fa0/4, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gig0/2
10 VLAN0010 active Gi0/1, Fa0/5
20 VLAN0020 active Gi0/2
30 VLAN0030 active Gi0/3
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#show interfaces vlan 1
Vlan1 is up, line protocol is up
Hardware is CPU Interface, address is 0002.1678.dd4c (bia
0002.1678.dd4c)
Internet address is 192.168.100.5/25
MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
Switch#show running-config | include default-gateway
ip default-gateway 192.168.100.4
13