質問編集履歴
4
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -1012,7 +1012,7 @@
|
|
1012
1012
|
|
1013
1013
|
line vty 0 4
|
1014
1014
|
|
1015
|
-
password
|
1015
|
+
password *******
|
1016
1016
|
|
1017
1017
|
login
|
1018
1018
|
|
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -530,6 +530,488 @@
|
|
530
530
|
|
531
531
|
line vty 0 4
|
532
532
|
|
533
|
+
password ******
|
534
|
+
|
535
|
+
login
|
536
|
+
|
537
|
+
!
|
538
|
+
|
539
|
+
!
|
540
|
+
|
541
|
+
end
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
```
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
```ここに言語を入力
|
550
|
+
|
551
|
+
###########ESW2##############
|
552
|
+
|
553
|
+
!
|
554
|
+
|
555
|
+
!
|
556
|
+
|
557
|
+
!
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
!
|
562
|
+
|
563
|
+
version 12.4
|
564
|
+
|
565
|
+
service timestamps debug datetime msec
|
566
|
+
|
567
|
+
service timestamps log datetime msec
|
568
|
+
|
569
|
+
no service password-encryption
|
570
|
+
|
571
|
+
no service dhcp
|
572
|
+
|
573
|
+
!
|
574
|
+
|
575
|
+
hostname ESW2
|
576
|
+
|
577
|
+
!
|
578
|
+
|
579
|
+
boot-start-marker
|
580
|
+
|
581
|
+
boot-end-marker
|
582
|
+
|
583
|
+
!
|
584
|
+
|
585
|
+
!
|
586
|
+
|
587
|
+
no aaa new-model
|
588
|
+
|
589
|
+
memory-size iomem 5
|
590
|
+
|
591
|
+
no ip icmp rate-limit unreachable
|
592
|
+
|
593
|
+
ip cef
|
594
|
+
|
595
|
+
!
|
596
|
+
|
597
|
+
!
|
598
|
+
|
599
|
+
!
|
600
|
+
|
601
|
+
!
|
602
|
+
|
603
|
+
no ip domain lookup
|
604
|
+
|
605
|
+
!
|
606
|
+
|
607
|
+
multilink bundle-name authenticated
|
608
|
+
|
609
|
+
!
|
610
|
+
|
611
|
+
!
|
612
|
+
|
613
|
+
!
|
614
|
+
|
615
|
+
!
|
616
|
+
|
617
|
+
!
|
618
|
+
|
619
|
+
!
|
620
|
+
|
621
|
+
!
|
622
|
+
|
623
|
+
!
|
624
|
+
|
625
|
+
!
|
626
|
+
|
627
|
+
!
|
628
|
+
|
629
|
+
!
|
630
|
+
|
631
|
+
!
|
632
|
+
|
633
|
+
!
|
634
|
+
|
635
|
+
!
|
636
|
+
|
637
|
+
!
|
638
|
+
|
639
|
+
!
|
640
|
+
|
641
|
+
!
|
642
|
+
|
643
|
+
!
|
644
|
+
|
645
|
+
!
|
646
|
+
|
647
|
+
!
|
648
|
+
|
649
|
+
macro name add_vlan
|
650
|
+
|
651
|
+
end
|
652
|
+
|
653
|
+
vlan database
|
654
|
+
|
655
|
+
vlan $v
|
656
|
+
|
657
|
+
exit
|
658
|
+
|
659
|
+
@
|
660
|
+
|
661
|
+
macro name del_vlan
|
662
|
+
|
663
|
+
end
|
664
|
+
|
665
|
+
vlan database
|
666
|
+
|
667
|
+
no vlan $v
|
668
|
+
|
669
|
+
exit
|
670
|
+
|
671
|
+
@
|
672
|
+
|
673
|
+
!
|
674
|
+
|
675
|
+
vtp file nvram:vlan.dat
|
676
|
+
|
677
|
+
archive
|
678
|
+
|
679
|
+
log config
|
680
|
+
|
681
|
+
hidekeys
|
682
|
+
|
683
|
+
!
|
684
|
+
|
685
|
+
!
|
686
|
+
|
687
|
+
!
|
688
|
+
|
689
|
+
!
|
690
|
+
|
691
|
+
ip tcp synwait-time 5
|
692
|
+
|
693
|
+
!
|
694
|
+
|
695
|
+
!
|
696
|
+
|
697
|
+
!
|
698
|
+
|
699
|
+
!
|
700
|
+
|
701
|
+
interface Port-channel1
|
702
|
+
|
703
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
704
|
+
|
705
|
+
switchport mode trunk
|
706
|
+
|
707
|
+
!
|
708
|
+
|
709
|
+
interface FastEthernet0/0
|
710
|
+
|
711
|
+
description *** Unused for Layer2 EtherSwitch ***
|
712
|
+
|
713
|
+
no ip address
|
714
|
+
|
715
|
+
shutdown
|
716
|
+
|
717
|
+
duplex auto
|
718
|
+
|
719
|
+
speed auto
|
720
|
+
|
721
|
+
!
|
722
|
+
|
723
|
+
interface FastEthernet0/1
|
724
|
+
|
725
|
+
description *** Unused for Layer2 EtherSwitch ***
|
726
|
+
|
727
|
+
no ip address
|
728
|
+
|
729
|
+
shutdown
|
730
|
+
|
731
|
+
duplex auto
|
732
|
+
|
733
|
+
speed auto
|
734
|
+
|
735
|
+
!
|
736
|
+
|
737
|
+
interface FastEthernet1/0
|
738
|
+
|
739
|
+
switchport access vlan 10
|
740
|
+
|
741
|
+
duplex full
|
742
|
+
|
743
|
+
speed 100
|
744
|
+
|
745
|
+
!
|
746
|
+
|
747
|
+
interface FastEthernet1/1
|
748
|
+
|
749
|
+
duplex full
|
750
|
+
|
751
|
+
speed 100
|
752
|
+
|
753
|
+
!
|
754
|
+
|
755
|
+
interface FastEthernet1/2
|
756
|
+
|
757
|
+
duplex full
|
758
|
+
|
759
|
+
speed 100
|
760
|
+
|
761
|
+
!
|
762
|
+
|
763
|
+
interface FastEthernet1/3
|
764
|
+
|
765
|
+
duplex full
|
766
|
+
|
767
|
+
speed 100
|
768
|
+
|
769
|
+
!
|
770
|
+
|
771
|
+
interface FastEthernet1/4
|
772
|
+
|
773
|
+
duplex full
|
774
|
+
|
775
|
+
speed 100
|
776
|
+
|
777
|
+
!
|
778
|
+
|
779
|
+
interface FastEthernet1/5
|
780
|
+
|
781
|
+
duplex full
|
782
|
+
|
783
|
+
speed 100
|
784
|
+
|
785
|
+
!
|
786
|
+
|
787
|
+
interface FastEthernet1/6
|
788
|
+
|
789
|
+
duplex full
|
790
|
+
|
791
|
+
speed 100
|
792
|
+
|
793
|
+
!
|
794
|
+
|
795
|
+
interface FastEthernet1/7
|
796
|
+
|
797
|
+
duplex full
|
798
|
+
|
799
|
+
speed 100
|
800
|
+
|
801
|
+
!
|
802
|
+
|
803
|
+
interface FastEthernet1/8
|
804
|
+
|
805
|
+
duplex full
|
806
|
+
|
807
|
+
speed 100
|
808
|
+
|
809
|
+
!
|
810
|
+
|
811
|
+
interface FastEthernet1/9
|
812
|
+
|
813
|
+
duplex full
|
814
|
+
|
815
|
+
speed 100
|
816
|
+
|
817
|
+
!
|
818
|
+
|
819
|
+
interface FastEthernet1/10
|
820
|
+
|
821
|
+
duplex full
|
822
|
+
|
823
|
+
speed 100
|
824
|
+
|
825
|
+
!
|
826
|
+
|
827
|
+
interface FastEthernet1/11
|
828
|
+
|
829
|
+
duplex full
|
830
|
+
|
831
|
+
speed 100
|
832
|
+
|
833
|
+
!
|
834
|
+
|
835
|
+
interface FastEthernet1/12
|
836
|
+
|
837
|
+
duplex full
|
838
|
+
|
839
|
+
speed 100
|
840
|
+
|
841
|
+
!
|
842
|
+
|
843
|
+
interface FastEthernet1/13
|
844
|
+
|
845
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
846
|
+
|
847
|
+
switchport mode trunk
|
848
|
+
|
849
|
+
channel-group 1 mode on
|
850
|
+
|
851
|
+
!
|
852
|
+
|
853
|
+
interface FastEthernet1/14
|
854
|
+
|
855
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
856
|
+
|
857
|
+
switchport mode trunk
|
858
|
+
|
859
|
+
channel-group 1 mode on
|
860
|
+
|
861
|
+
!
|
862
|
+
|
863
|
+
interface FastEthernet1/15
|
864
|
+
|
865
|
+
description ### administration ###
|
866
|
+
|
867
|
+
switchport access vlan 2
|
868
|
+
|
869
|
+
duplex full
|
870
|
+
|
871
|
+
speed 100
|
872
|
+
|
873
|
+
!
|
874
|
+
|
875
|
+
interface Vlan1
|
876
|
+
|
877
|
+
no ip address
|
878
|
+
|
879
|
+
shutdown
|
880
|
+
|
881
|
+
!
|
882
|
+
|
883
|
+
interface Vlan2
|
884
|
+
|
885
|
+
description ### administration ###
|
886
|
+
|
887
|
+
ip address 192.168.11.52 255.255.255.0
|
888
|
+
|
889
|
+
!
|
890
|
+
|
891
|
+
interface Vlan10
|
892
|
+
|
893
|
+
description ### test vlan #1 ###
|
894
|
+
|
895
|
+
ip address 192.168.100.11 255.255.255.0
|
896
|
+
|
897
|
+
!
|
898
|
+
|
899
|
+
interface Vlan20
|
900
|
+
|
901
|
+
description ### test vlan #2 ###
|
902
|
+
|
903
|
+
ip address 192.168.101.11 255.255.255.0
|
904
|
+
|
905
|
+
!
|
906
|
+
|
907
|
+
ip forward-protocol nd
|
908
|
+
|
909
|
+
!
|
910
|
+
|
911
|
+
!
|
912
|
+
|
913
|
+
no ip http server
|
914
|
+
|
915
|
+
no ip http secure-server
|
916
|
+
|
917
|
+
!
|
918
|
+
|
919
|
+
no cdp log mismatch duplex
|
920
|
+
|
921
|
+
!
|
922
|
+
|
923
|
+
!
|
924
|
+
|
925
|
+
!
|
926
|
+
|
927
|
+
!
|
928
|
+
|
929
|
+
!
|
930
|
+
|
931
|
+
!
|
932
|
+
|
933
|
+
control-plane
|
934
|
+
|
935
|
+
!
|
936
|
+
|
937
|
+
!
|
938
|
+
|
939
|
+
!
|
940
|
+
|
941
|
+
!
|
942
|
+
|
943
|
+
!
|
944
|
+
|
945
|
+
!
|
946
|
+
|
947
|
+
!
|
948
|
+
|
949
|
+
!
|
950
|
+
|
951
|
+
!
|
952
|
+
|
953
|
+
banner exec
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
***************************************************************
|
958
|
+
|
959
|
+
This is a normal Router with a Switch module inside (NM-16ESW)
|
960
|
+
|
961
|
+
It has been pre-configured with hard-coded speed and duplex
|
962
|
+
|
963
|
+
|
964
|
+
|
965
|
+
To create vlans use the command "vlan database" in exec mode
|
966
|
+
|
967
|
+
After creating all desired vlans use "exit" to apply the config
|
968
|
+
|
969
|
+
|
970
|
+
|
971
|
+
To view existing vlans use the command "show vlan-switch brief"
|
972
|
+
|
973
|
+
|
974
|
+
|
975
|
+
Alias(exec) : vl - "show vlan-switch brief" command
|
976
|
+
|
977
|
+
Alias(configure): va X - macro to add vlan X
|
978
|
+
|
979
|
+
Alias(configure): vd X - macro to delete vlan X
|
980
|
+
|
981
|
+
***************************************************************
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
|
987
|
+
alias configure va macro global trace add_vlan $v
|
988
|
+
|
989
|
+
alias configure vd macro global trace del_vlan $v
|
990
|
+
|
991
|
+
alias exec vl show vlan-switch brief
|
992
|
+
|
993
|
+
!
|
994
|
+
|
995
|
+
line con 0
|
996
|
+
|
997
|
+
exec-timeout 0 0
|
998
|
+
|
999
|
+
privilege level 15
|
1000
|
+
|
1001
|
+
password ******
|
1002
|
+
|
1003
|
+
logging synchronous
|
1004
|
+
|
1005
|
+
line aux 0
|
1006
|
+
|
1007
|
+
exec-timeout 0 0
|
1008
|
+
|
1009
|
+
privilege level 15
|
1010
|
+
|
1011
|
+
logging synchronous
|
1012
|
+
|
1013
|
+
line vty 0 4
|
1014
|
+
|
533
1015
|
password 87zpg6a7
|
534
1016
|
|
535
1017
|
login
|
@@ -543,485 +1025,3 @@
|
|
543
1025
|
|
544
1026
|
|
545
1027
|
```
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
```ここに言語を入力
|
550
|
-
|
551
|
-
###########ESW2##############
|
552
|
-
|
553
|
-
!
|
554
|
-
|
555
|
-
!
|
556
|
-
|
557
|
-
!
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
!
|
562
|
-
|
563
|
-
version 12.4
|
564
|
-
|
565
|
-
service timestamps debug datetime msec
|
566
|
-
|
567
|
-
service timestamps log datetime msec
|
568
|
-
|
569
|
-
no service password-encryption
|
570
|
-
|
571
|
-
no service dhcp
|
572
|
-
|
573
|
-
!
|
574
|
-
|
575
|
-
hostname ESW2
|
576
|
-
|
577
|
-
!
|
578
|
-
|
579
|
-
boot-start-marker
|
580
|
-
|
581
|
-
boot-end-marker
|
582
|
-
|
583
|
-
!
|
584
|
-
|
585
|
-
!
|
586
|
-
|
587
|
-
no aaa new-model
|
588
|
-
|
589
|
-
memory-size iomem 5
|
590
|
-
|
591
|
-
no ip icmp rate-limit unreachable
|
592
|
-
|
593
|
-
ip cef
|
594
|
-
|
595
|
-
!
|
596
|
-
|
597
|
-
!
|
598
|
-
|
599
|
-
!
|
600
|
-
|
601
|
-
!
|
602
|
-
|
603
|
-
no ip domain lookup
|
604
|
-
|
605
|
-
!
|
606
|
-
|
607
|
-
multilink bundle-name authenticated
|
608
|
-
|
609
|
-
!
|
610
|
-
|
611
|
-
!
|
612
|
-
|
613
|
-
!
|
614
|
-
|
615
|
-
!
|
616
|
-
|
617
|
-
!
|
618
|
-
|
619
|
-
!
|
620
|
-
|
621
|
-
!
|
622
|
-
|
623
|
-
!
|
624
|
-
|
625
|
-
!
|
626
|
-
|
627
|
-
!
|
628
|
-
|
629
|
-
!
|
630
|
-
|
631
|
-
!
|
632
|
-
|
633
|
-
!
|
634
|
-
|
635
|
-
!
|
636
|
-
|
637
|
-
!
|
638
|
-
|
639
|
-
!
|
640
|
-
|
641
|
-
!
|
642
|
-
|
643
|
-
!
|
644
|
-
|
645
|
-
!
|
646
|
-
|
647
|
-
!
|
648
|
-
|
649
|
-
macro name add_vlan
|
650
|
-
|
651
|
-
end
|
652
|
-
|
653
|
-
vlan database
|
654
|
-
|
655
|
-
vlan $v
|
656
|
-
|
657
|
-
exit
|
658
|
-
|
659
|
-
@
|
660
|
-
|
661
|
-
macro name del_vlan
|
662
|
-
|
663
|
-
end
|
664
|
-
|
665
|
-
vlan database
|
666
|
-
|
667
|
-
no vlan $v
|
668
|
-
|
669
|
-
exit
|
670
|
-
|
671
|
-
@
|
672
|
-
|
673
|
-
!
|
674
|
-
|
675
|
-
vtp file nvram:vlan.dat
|
676
|
-
|
677
|
-
archive
|
678
|
-
|
679
|
-
log config
|
680
|
-
|
681
|
-
hidekeys
|
682
|
-
|
683
|
-
!
|
684
|
-
|
685
|
-
!
|
686
|
-
|
687
|
-
!
|
688
|
-
|
689
|
-
!
|
690
|
-
|
691
|
-
ip tcp synwait-time 5
|
692
|
-
|
693
|
-
!
|
694
|
-
|
695
|
-
!
|
696
|
-
|
697
|
-
!
|
698
|
-
|
699
|
-
!
|
700
|
-
|
701
|
-
interface Port-channel1
|
702
|
-
|
703
|
-
switchport trunk allowed vlan 1,10,20,1002-1005
|
704
|
-
|
705
|
-
switchport mode trunk
|
706
|
-
|
707
|
-
!
|
708
|
-
|
709
|
-
interface FastEthernet0/0
|
710
|
-
|
711
|
-
description *** Unused for Layer2 EtherSwitch ***
|
712
|
-
|
713
|
-
no ip address
|
714
|
-
|
715
|
-
shutdown
|
716
|
-
|
717
|
-
duplex auto
|
718
|
-
|
719
|
-
speed auto
|
720
|
-
|
721
|
-
!
|
722
|
-
|
723
|
-
interface FastEthernet0/1
|
724
|
-
|
725
|
-
description *** Unused for Layer2 EtherSwitch ***
|
726
|
-
|
727
|
-
no ip address
|
728
|
-
|
729
|
-
shutdown
|
730
|
-
|
731
|
-
duplex auto
|
732
|
-
|
733
|
-
speed auto
|
734
|
-
|
735
|
-
!
|
736
|
-
|
737
|
-
interface FastEthernet1/0
|
738
|
-
|
739
|
-
switchport access vlan 10
|
740
|
-
|
741
|
-
duplex full
|
742
|
-
|
743
|
-
speed 100
|
744
|
-
|
745
|
-
!
|
746
|
-
|
747
|
-
interface FastEthernet1/1
|
748
|
-
|
749
|
-
duplex full
|
750
|
-
|
751
|
-
speed 100
|
752
|
-
|
753
|
-
!
|
754
|
-
|
755
|
-
interface FastEthernet1/2
|
756
|
-
|
757
|
-
duplex full
|
758
|
-
|
759
|
-
speed 100
|
760
|
-
|
761
|
-
!
|
762
|
-
|
763
|
-
interface FastEthernet1/3
|
764
|
-
|
765
|
-
duplex full
|
766
|
-
|
767
|
-
speed 100
|
768
|
-
|
769
|
-
!
|
770
|
-
|
771
|
-
interface FastEthernet1/4
|
772
|
-
|
773
|
-
duplex full
|
774
|
-
|
775
|
-
speed 100
|
776
|
-
|
777
|
-
!
|
778
|
-
|
779
|
-
interface FastEthernet1/5
|
780
|
-
|
781
|
-
duplex full
|
782
|
-
|
783
|
-
speed 100
|
784
|
-
|
785
|
-
!
|
786
|
-
|
787
|
-
interface FastEthernet1/6
|
788
|
-
|
789
|
-
duplex full
|
790
|
-
|
791
|
-
speed 100
|
792
|
-
|
793
|
-
!
|
794
|
-
|
795
|
-
interface FastEthernet1/7
|
796
|
-
|
797
|
-
duplex full
|
798
|
-
|
799
|
-
speed 100
|
800
|
-
|
801
|
-
!
|
802
|
-
|
803
|
-
interface FastEthernet1/8
|
804
|
-
|
805
|
-
duplex full
|
806
|
-
|
807
|
-
speed 100
|
808
|
-
|
809
|
-
!
|
810
|
-
|
811
|
-
interface FastEthernet1/9
|
812
|
-
|
813
|
-
duplex full
|
814
|
-
|
815
|
-
speed 100
|
816
|
-
|
817
|
-
!
|
818
|
-
|
819
|
-
interface FastEthernet1/10
|
820
|
-
|
821
|
-
duplex full
|
822
|
-
|
823
|
-
speed 100
|
824
|
-
|
825
|
-
!
|
826
|
-
|
827
|
-
interface FastEthernet1/11
|
828
|
-
|
829
|
-
duplex full
|
830
|
-
|
831
|
-
speed 100
|
832
|
-
|
833
|
-
!
|
834
|
-
|
835
|
-
interface FastEthernet1/12
|
836
|
-
|
837
|
-
duplex full
|
838
|
-
|
839
|
-
speed 100
|
840
|
-
|
841
|
-
!
|
842
|
-
|
843
|
-
interface FastEthernet1/13
|
844
|
-
|
845
|
-
switchport trunk allowed vlan 1,10,20,1002-1005
|
846
|
-
|
847
|
-
switchport mode trunk
|
848
|
-
|
849
|
-
channel-group 1 mode on
|
850
|
-
|
851
|
-
!
|
852
|
-
|
853
|
-
interface FastEthernet1/14
|
854
|
-
|
855
|
-
switchport trunk allowed vlan 1,10,20,1002-1005
|
856
|
-
|
857
|
-
switchport mode trunk
|
858
|
-
|
859
|
-
channel-group 1 mode on
|
860
|
-
|
861
|
-
!
|
862
|
-
|
863
|
-
interface FastEthernet1/15
|
864
|
-
|
865
|
-
description ### administration ###
|
866
|
-
|
867
|
-
switchport access vlan 2
|
868
|
-
|
869
|
-
duplex full
|
870
|
-
|
871
|
-
speed 100
|
872
|
-
|
873
|
-
!
|
874
|
-
|
875
|
-
interface Vlan1
|
876
|
-
|
877
|
-
no ip address
|
878
|
-
|
879
|
-
shutdown
|
880
|
-
|
881
|
-
!
|
882
|
-
|
883
|
-
interface Vlan2
|
884
|
-
|
885
|
-
description ### administration ###
|
886
|
-
|
887
|
-
ip address 192.168.11.52 255.255.255.0
|
888
|
-
|
889
|
-
!
|
890
|
-
|
891
|
-
interface Vlan10
|
892
|
-
|
893
|
-
description ### test vlan #1 ###
|
894
|
-
|
895
|
-
ip address 192.168.100.11 255.255.255.0
|
896
|
-
|
897
|
-
!
|
898
|
-
|
899
|
-
interface Vlan20
|
900
|
-
|
901
|
-
description ### test vlan #2 ###
|
902
|
-
|
903
|
-
ip address 192.168.101.11 255.255.255.0
|
904
|
-
|
905
|
-
!
|
906
|
-
|
907
|
-
ip forward-protocol nd
|
908
|
-
|
909
|
-
!
|
910
|
-
|
911
|
-
!
|
912
|
-
|
913
|
-
no ip http server
|
914
|
-
|
915
|
-
no ip http secure-server
|
916
|
-
|
917
|
-
!
|
918
|
-
|
919
|
-
no cdp log mismatch duplex
|
920
|
-
|
921
|
-
!
|
922
|
-
|
923
|
-
!
|
924
|
-
|
925
|
-
!
|
926
|
-
|
927
|
-
!
|
928
|
-
|
929
|
-
!
|
930
|
-
|
931
|
-
!
|
932
|
-
|
933
|
-
control-plane
|
934
|
-
|
935
|
-
!
|
936
|
-
|
937
|
-
!
|
938
|
-
|
939
|
-
!
|
940
|
-
|
941
|
-
!
|
942
|
-
|
943
|
-
!
|
944
|
-
|
945
|
-
!
|
946
|
-
|
947
|
-
!
|
948
|
-
|
949
|
-
!
|
950
|
-
|
951
|
-
!
|
952
|
-
|
953
|
-
banner exec
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
***************************************************************
|
958
|
-
|
959
|
-
This is a normal Router with a Switch module inside (NM-16ESW)
|
960
|
-
|
961
|
-
It has been pre-configured with hard-coded speed and duplex
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
To create vlans use the command "vlan database" in exec mode
|
966
|
-
|
967
|
-
After creating all desired vlans use "exit" to apply the config
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
To view existing vlans use the command "show vlan-switch brief"
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
Alias(exec) : vl - "show vlan-switch brief" command
|
976
|
-
|
977
|
-
Alias(configure): va X - macro to add vlan X
|
978
|
-
|
979
|
-
Alias(configure): vd X - macro to delete vlan X
|
980
|
-
|
981
|
-
***************************************************************
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
alias configure va macro global trace add_vlan $v
|
988
|
-
|
989
|
-
alias configure vd macro global trace del_vlan $v
|
990
|
-
|
991
|
-
alias exec vl show vlan-switch brief
|
992
|
-
|
993
|
-
!
|
994
|
-
|
995
|
-
line con 0
|
996
|
-
|
997
|
-
exec-timeout 0 0
|
998
|
-
|
999
|
-
privilege level 15
|
1000
|
-
|
1001
|
-
password ******
|
1002
|
-
|
1003
|
-
logging synchronous
|
1004
|
-
|
1005
|
-
line aux 0
|
1006
|
-
|
1007
|
-
exec-timeout 0 0
|
1008
|
-
|
1009
|
-
privilege level 15
|
1010
|
-
|
1011
|
-
logging synchronous
|
1012
|
-
|
1013
|
-
line vty 0 4
|
1014
|
-
|
1015
|
-
password 87zpg6a7
|
1016
|
-
|
1017
|
-
login
|
1018
|
-
|
1019
|
-
!
|
1020
|
-
|
1021
|
-
!
|
1022
|
-
|
1023
|
-
end
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
```
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -41,3 +41,987 @@
|
|
41
41
|
調べてもいまいちやり方がわかりません。
|
42
42
|
|
43
43
|
ご存知の方おられましたらご回答お願いいたします。
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
=========
|
48
|
+
|
49
|
+
ご回答に対して
|
50
|
+
|
51
|
+
少し長くなりますが、、ESW1とESW2のshow run結果について添付します、
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
```ここに言語を入力
|
58
|
+
|
59
|
+
#############ESW1###############
|
60
|
+
|
61
|
+
!
|
62
|
+
|
63
|
+
!
|
64
|
+
|
65
|
+
!
|
66
|
+
|
67
|
+
!
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
!
|
72
|
+
|
73
|
+
version 12.4
|
74
|
+
|
75
|
+
service timestamps debug datetime msec
|
76
|
+
|
77
|
+
service timestamps log datetime msec
|
78
|
+
|
79
|
+
no service password-encryption
|
80
|
+
|
81
|
+
no service dhcp
|
82
|
+
|
83
|
+
!
|
84
|
+
|
85
|
+
hostname ESW1
|
86
|
+
|
87
|
+
!
|
88
|
+
|
89
|
+
boot-start-marker
|
90
|
+
|
91
|
+
boot-end-marker
|
92
|
+
|
93
|
+
!
|
94
|
+
|
95
|
+
!
|
96
|
+
|
97
|
+
no aaa new-model
|
98
|
+
|
99
|
+
memory-size iomem 5
|
100
|
+
|
101
|
+
no ip icmp rate-limit unreachable
|
102
|
+
|
103
|
+
ip cef
|
104
|
+
|
105
|
+
!
|
106
|
+
|
107
|
+
!
|
108
|
+
|
109
|
+
!
|
110
|
+
|
111
|
+
!
|
112
|
+
|
113
|
+
no ip domain lookup
|
114
|
+
|
115
|
+
!
|
116
|
+
|
117
|
+
multilink bundle-name authenticated
|
118
|
+
|
119
|
+
!
|
120
|
+
|
121
|
+
!
|
122
|
+
|
123
|
+
!
|
124
|
+
|
125
|
+
!
|
126
|
+
|
127
|
+
!
|
128
|
+
|
129
|
+
!
|
130
|
+
|
131
|
+
!
|
132
|
+
|
133
|
+
!
|
134
|
+
|
135
|
+
!
|
136
|
+
|
137
|
+
!
|
138
|
+
|
139
|
+
!
|
140
|
+
|
141
|
+
!
|
142
|
+
|
143
|
+
!
|
144
|
+
|
145
|
+
!
|
146
|
+
|
147
|
+
!
|
148
|
+
|
149
|
+
!
|
150
|
+
|
151
|
+
!
|
152
|
+
|
153
|
+
!
|
154
|
+
|
155
|
+
!
|
156
|
+
|
157
|
+
!
|
158
|
+
|
159
|
+
macro name add_vlan
|
160
|
+
|
161
|
+
end
|
162
|
+
|
163
|
+
vlan database
|
164
|
+
|
165
|
+
vlan $v
|
166
|
+
|
167
|
+
exit
|
168
|
+
|
169
|
+
@
|
170
|
+
|
171
|
+
macro name del_vlan
|
172
|
+
|
173
|
+
end
|
174
|
+
|
175
|
+
vlan database
|
176
|
+
|
177
|
+
no vlan $v
|
178
|
+
|
179
|
+
exit
|
180
|
+
|
181
|
+
@
|
182
|
+
|
183
|
+
!
|
184
|
+
|
185
|
+
vtp file nvram:vlan.dat
|
186
|
+
|
187
|
+
archive
|
188
|
+
|
189
|
+
log config
|
190
|
+
|
191
|
+
hidekeys
|
192
|
+
|
193
|
+
!
|
194
|
+
|
195
|
+
!
|
196
|
+
|
197
|
+
!
|
198
|
+
|
199
|
+
!
|
200
|
+
|
201
|
+
ip tcp synwait-time 5
|
202
|
+
|
203
|
+
!
|
204
|
+
|
205
|
+
!
|
206
|
+
|
207
|
+
!
|
208
|
+
|
209
|
+
!
|
210
|
+
|
211
|
+
interface Port-channel1
|
212
|
+
|
213
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
214
|
+
|
215
|
+
switchport mode trunk
|
216
|
+
|
217
|
+
!
|
218
|
+
|
219
|
+
interface FastEthernet0/0
|
220
|
+
|
221
|
+
description *** Unused for Layer2 EtherSwitch ***
|
222
|
+
|
223
|
+
no ip address
|
224
|
+
|
225
|
+
shutdown
|
226
|
+
|
227
|
+
duplex auto
|
228
|
+
|
229
|
+
speed auto
|
230
|
+
|
231
|
+
!
|
232
|
+
|
233
|
+
interface FastEthernet0/1
|
234
|
+
|
235
|
+
description *** Unused for Layer2 EtherSwitch ***
|
236
|
+
|
237
|
+
no ip address
|
238
|
+
|
239
|
+
shutdown
|
240
|
+
|
241
|
+
duplex auto
|
242
|
+
|
243
|
+
speed auto
|
244
|
+
|
245
|
+
!
|
246
|
+
|
247
|
+
interface FastEthernet1/0
|
248
|
+
|
249
|
+
switchport access vlan 10
|
250
|
+
|
251
|
+
duplex full
|
252
|
+
|
253
|
+
speed 100
|
254
|
+
|
255
|
+
!
|
256
|
+
|
257
|
+
interface FastEthernet1/1
|
258
|
+
|
259
|
+
switchport access vlan 20
|
260
|
+
|
261
|
+
duplex full
|
262
|
+
|
263
|
+
speed 100
|
264
|
+
|
265
|
+
!
|
266
|
+
|
267
|
+
interface FastEthernet1/2
|
268
|
+
|
269
|
+
duplex full
|
270
|
+
|
271
|
+
speed 100
|
272
|
+
|
273
|
+
!
|
274
|
+
|
275
|
+
interface FastEthernet1/3
|
276
|
+
|
277
|
+
duplex full
|
278
|
+
|
279
|
+
speed 100
|
280
|
+
|
281
|
+
!
|
282
|
+
|
283
|
+
interface FastEthernet1/4
|
284
|
+
|
285
|
+
duplex full
|
286
|
+
|
287
|
+
speed 100
|
288
|
+
|
289
|
+
!
|
290
|
+
|
291
|
+
interface FastEthernet1/5
|
292
|
+
|
293
|
+
duplex full
|
294
|
+
|
295
|
+
speed 100
|
296
|
+
|
297
|
+
!
|
298
|
+
|
299
|
+
interface FastEthernet1/6
|
300
|
+
|
301
|
+
duplex full
|
302
|
+
|
303
|
+
speed 100
|
304
|
+
|
305
|
+
!
|
306
|
+
|
307
|
+
interface FastEthernet1/7
|
308
|
+
|
309
|
+
duplex full
|
310
|
+
|
311
|
+
speed 100
|
312
|
+
|
313
|
+
!
|
314
|
+
|
315
|
+
interface FastEthernet1/8
|
316
|
+
|
317
|
+
duplex full
|
318
|
+
|
319
|
+
speed 100
|
320
|
+
|
321
|
+
!
|
322
|
+
|
323
|
+
interface FastEthernet1/9
|
324
|
+
|
325
|
+
duplex full
|
326
|
+
|
327
|
+
speed 100
|
328
|
+
|
329
|
+
!
|
330
|
+
|
331
|
+
interface FastEthernet1/10
|
332
|
+
|
333
|
+
duplex full
|
334
|
+
|
335
|
+
speed 100
|
336
|
+
|
337
|
+
!
|
338
|
+
|
339
|
+
interface FastEthernet1/11
|
340
|
+
|
341
|
+
duplex full
|
342
|
+
|
343
|
+
speed 100
|
344
|
+
|
345
|
+
!
|
346
|
+
|
347
|
+
interface FastEthernet1/12
|
348
|
+
|
349
|
+
duplex full
|
350
|
+
|
351
|
+
speed 100
|
352
|
+
|
353
|
+
!
|
354
|
+
|
355
|
+
interface FastEthernet1/13
|
356
|
+
|
357
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
358
|
+
|
359
|
+
switchport mode trunk
|
360
|
+
|
361
|
+
channel-group 1 mode on
|
362
|
+
|
363
|
+
!
|
364
|
+
|
365
|
+
interface FastEthernet1/14
|
366
|
+
|
367
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
368
|
+
|
369
|
+
switchport mode trunk
|
370
|
+
|
371
|
+
channel-group 1 mode on
|
372
|
+
|
373
|
+
!
|
374
|
+
|
375
|
+
interface FastEthernet1/15
|
376
|
+
|
377
|
+
description ### administration ###
|
378
|
+
|
379
|
+
switchport access vlan 2
|
380
|
+
|
381
|
+
duplex full
|
382
|
+
|
383
|
+
speed 100
|
384
|
+
|
385
|
+
!
|
386
|
+
|
387
|
+
interface Vlan1
|
388
|
+
|
389
|
+
no ip address
|
390
|
+
|
391
|
+
shutdown
|
392
|
+
|
393
|
+
!
|
394
|
+
|
395
|
+
interface Vlan2
|
396
|
+
|
397
|
+
description ### administration ###
|
398
|
+
|
399
|
+
ip address 192.168.11.51 255.255.255.0
|
400
|
+
|
401
|
+
!
|
402
|
+
|
403
|
+
interface Vlan10
|
404
|
+
|
405
|
+
description ### test vlan #1 ###
|
406
|
+
|
407
|
+
ip address 192.168.100.1 255.255.255.0
|
408
|
+
|
409
|
+
!
|
410
|
+
|
411
|
+
interface Vlan20
|
412
|
+
|
413
|
+
description ### test vlan #2 ###
|
414
|
+
|
415
|
+
ip address 192.168.101.1 255.255.255.0
|
416
|
+
|
417
|
+
!
|
418
|
+
|
419
|
+
ip forward-protocol nd
|
420
|
+
|
421
|
+
ip route 0.0.0.0 0.0.0.0 192.168.51.1
|
422
|
+
|
423
|
+
ip route 0.0.0.0 0.0.0.0 192.168.11.1
|
424
|
+
|
425
|
+
ip route 0.0.0.0 0.0.0.0 192.168.11.2
|
426
|
+
|
427
|
+
!
|
428
|
+
|
429
|
+
!
|
430
|
+
|
431
|
+
no ip http server
|
432
|
+
|
433
|
+
no ip http secure-server
|
434
|
+
|
435
|
+
!
|
436
|
+
|
437
|
+
no cdp log mismatch duplex
|
438
|
+
|
439
|
+
!
|
440
|
+
|
441
|
+
!
|
442
|
+
|
443
|
+
!
|
444
|
+
|
445
|
+
!
|
446
|
+
|
447
|
+
!
|
448
|
+
|
449
|
+
!
|
450
|
+
|
451
|
+
control-plane
|
452
|
+
|
453
|
+
!
|
454
|
+
|
455
|
+
!
|
456
|
+
|
457
|
+
!
|
458
|
+
|
459
|
+
!
|
460
|
+
|
461
|
+
!
|
462
|
+
|
463
|
+
!
|
464
|
+
|
465
|
+
!
|
466
|
+
|
467
|
+
!
|
468
|
+
|
469
|
+
!
|
470
|
+
|
471
|
+
banner exec
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
***************************************************************
|
476
|
+
|
477
|
+
This is a normal Router with a Switch module inside (NM-16ESW)
|
478
|
+
|
479
|
+
It has been pre-configured with hard-coded speed and duplex
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
To create vlans use the command "vlan database" in exec mode
|
484
|
+
|
485
|
+
After creating all desired vlans use "exit" to apply the config
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
To view existing vlans use the command "show vlan-switch brief"
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
Alias(exec) : vl - "show vlan-switch brief" command
|
494
|
+
|
495
|
+
Alias(configure): va X - macro to add vlan X
|
496
|
+
|
497
|
+
Alias(configure): vd X - macro to delete vlan X
|
498
|
+
|
499
|
+
***************************************************************
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
alias configure va macro global trace add_vlan $v
|
506
|
+
|
507
|
+
alias configure vd macro global trace del_vlan $v
|
508
|
+
|
509
|
+
alias exec vl show vlan-switch brief
|
510
|
+
|
511
|
+
!
|
512
|
+
|
513
|
+
line con 0
|
514
|
+
|
515
|
+
exec-timeout 0 0
|
516
|
+
|
517
|
+
privilege level 15
|
518
|
+
|
519
|
+
password *****
|
520
|
+
|
521
|
+
logging synchronous
|
522
|
+
|
523
|
+
line aux 0
|
524
|
+
|
525
|
+
exec-timeout 0 0
|
526
|
+
|
527
|
+
privilege level 15
|
528
|
+
|
529
|
+
logging synchronous
|
530
|
+
|
531
|
+
line vty 0 4
|
532
|
+
|
533
|
+
password 87zpg6a7
|
534
|
+
|
535
|
+
login
|
536
|
+
|
537
|
+
!
|
538
|
+
|
539
|
+
!
|
540
|
+
|
541
|
+
end
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
```
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
```ここに言語を入力
|
550
|
+
|
551
|
+
###########ESW2##############
|
552
|
+
|
553
|
+
!
|
554
|
+
|
555
|
+
!
|
556
|
+
|
557
|
+
!
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
!
|
562
|
+
|
563
|
+
version 12.4
|
564
|
+
|
565
|
+
service timestamps debug datetime msec
|
566
|
+
|
567
|
+
service timestamps log datetime msec
|
568
|
+
|
569
|
+
no service password-encryption
|
570
|
+
|
571
|
+
no service dhcp
|
572
|
+
|
573
|
+
!
|
574
|
+
|
575
|
+
hostname ESW2
|
576
|
+
|
577
|
+
!
|
578
|
+
|
579
|
+
boot-start-marker
|
580
|
+
|
581
|
+
boot-end-marker
|
582
|
+
|
583
|
+
!
|
584
|
+
|
585
|
+
!
|
586
|
+
|
587
|
+
no aaa new-model
|
588
|
+
|
589
|
+
memory-size iomem 5
|
590
|
+
|
591
|
+
no ip icmp rate-limit unreachable
|
592
|
+
|
593
|
+
ip cef
|
594
|
+
|
595
|
+
!
|
596
|
+
|
597
|
+
!
|
598
|
+
|
599
|
+
!
|
600
|
+
|
601
|
+
!
|
602
|
+
|
603
|
+
no ip domain lookup
|
604
|
+
|
605
|
+
!
|
606
|
+
|
607
|
+
multilink bundle-name authenticated
|
608
|
+
|
609
|
+
!
|
610
|
+
|
611
|
+
!
|
612
|
+
|
613
|
+
!
|
614
|
+
|
615
|
+
!
|
616
|
+
|
617
|
+
!
|
618
|
+
|
619
|
+
!
|
620
|
+
|
621
|
+
!
|
622
|
+
|
623
|
+
!
|
624
|
+
|
625
|
+
!
|
626
|
+
|
627
|
+
!
|
628
|
+
|
629
|
+
!
|
630
|
+
|
631
|
+
!
|
632
|
+
|
633
|
+
!
|
634
|
+
|
635
|
+
!
|
636
|
+
|
637
|
+
!
|
638
|
+
|
639
|
+
!
|
640
|
+
|
641
|
+
!
|
642
|
+
|
643
|
+
!
|
644
|
+
|
645
|
+
!
|
646
|
+
|
647
|
+
!
|
648
|
+
|
649
|
+
macro name add_vlan
|
650
|
+
|
651
|
+
end
|
652
|
+
|
653
|
+
vlan database
|
654
|
+
|
655
|
+
vlan $v
|
656
|
+
|
657
|
+
exit
|
658
|
+
|
659
|
+
@
|
660
|
+
|
661
|
+
macro name del_vlan
|
662
|
+
|
663
|
+
end
|
664
|
+
|
665
|
+
vlan database
|
666
|
+
|
667
|
+
no vlan $v
|
668
|
+
|
669
|
+
exit
|
670
|
+
|
671
|
+
@
|
672
|
+
|
673
|
+
!
|
674
|
+
|
675
|
+
vtp file nvram:vlan.dat
|
676
|
+
|
677
|
+
archive
|
678
|
+
|
679
|
+
log config
|
680
|
+
|
681
|
+
hidekeys
|
682
|
+
|
683
|
+
!
|
684
|
+
|
685
|
+
!
|
686
|
+
|
687
|
+
!
|
688
|
+
|
689
|
+
!
|
690
|
+
|
691
|
+
ip tcp synwait-time 5
|
692
|
+
|
693
|
+
!
|
694
|
+
|
695
|
+
!
|
696
|
+
|
697
|
+
!
|
698
|
+
|
699
|
+
!
|
700
|
+
|
701
|
+
interface Port-channel1
|
702
|
+
|
703
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
704
|
+
|
705
|
+
switchport mode trunk
|
706
|
+
|
707
|
+
!
|
708
|
+
|
709
|
+
interface FastEthernet0/0
|
710
|
+
|
711
|
+
description *** Unused for Layer2 EtherSwitch ***
|
712
|
+
|
713
|
+
no ip address
|
714
|
+
|
715
|
+
shutdown
|
716
|
+
|
717
|
+
duplex auto
|
718
|
+
|
719
|
+
speed auto
|
720
|
+
|
721
|
+
!
|
722
|
+
|
723
|
+
interface FastEthernet0/1
|
724
|
+
|
725
|
+
description *** Unused for Layer2 EtherSwitch ***
|
726
|
+
|
727
|
+
no ip address
|
728
|
+
|
729
|
+
shutdown
|
730
|
+
|
731
|
+
duplex auto
|
732
|
+
|
733
|
+
speed auto
|
734
|
+
|
735
|
+
!
|
736
|
+
|
737
|
+
interface FastEthernet1/0
|
738
|
+
|
739
|
+
switchport access vlan 10
|
740
|
+
|
741
|
+
duplex full
|
742
|
+
|
743
|
+
speed 100
|
744
|
+
|
745
|
+
!
|
746
|
+
|
747
|
+
interface FastEthernet1/1
|
748
|
+
|
749
|
+
duplex full
|
750
|
+
|
751
|
+
speed 100
|
752
|
+
|
753
|
+
!
|
754
|
+
|
755
|
+
interface FastEthernet1/2
|
756
|
+
|
757
|
+
duplex full
|
758
|
+
|
759
|
+
speed 100
|
760
|
+
|
761
|
+
!
|
762
|
+
|
763
|
+
interface FastEthernet1/3
|
764
|
+
|
765
|
+
duplex full
|
766
|
+
|
767
|
+
speed 100
|
768
|
+
|
769
|
+
!
|
770
|
+
|
771
|
+
interface FastEthernet1/4
|
772
|
+
|
773
|
+
duplex full
|
774
|
+
|
775
|
+
speed 100
|
776
|
+
|
777
|
+
!
|
778
|
+
|
779
|
+
interface FastEthernet1/5
|
780
|
+
|
781
|
+
duplex full
|
782
|
+
|
783
|
+
speed 100
|
784
|
+
|
785
|
+
!
|
786
|
+
|
787
|
+
interface FastEthernet1/6
|
788
|
+
|
789
|
+
duplex full
|
790
|
+
|
791
|
+
speed 100
|
792
|
+
|
793
|
+
!
|
794
|
+
|
795
|
+
interface FastEthernet1/7
|
796
|
+
|
797
|
+
duplex full
|
798
|
+
|
799
|
+
speed 100
|
800
|
+
|
801
|
+
!
|
802
|
+
|
803
|
+
interface FastEthernet1/8
|
804
|
+
|
805
|
+
duplex full
|
806
|
+
|
807
|
+
speed 100
|
808
|
+
|
809
|
+
!
|
810
|
+
|
811
|
+
interface FastEthernet1/9
|
812
|
+
|
813
|
+
duplex full
|
814
|
+
|
815
|
+
speed 100
|
816
|
+
|
817
|
+
!
|
818
|
+
|
819
|
+
interface FastEthernet1/10
|
820
|
+
|
821
|
+
duplex full
|
822
|
+
|
823
|
+
speed 100
|
824
|
+
|
825
|
+
!
|
826
|
+
|
827
|
+
interface FastEthernet1/11
|
828
|
+
|
829
|
+
duplex full
|
830
|
+
|
831
|
+
speed 100
|
832
|
+
|
833
|
+
!
|
834
|
+
|
835
|
+
interface FastEthernet1/12
|
836
|
+
|
837
|
+
duplex full
|
838
|
+
|
839
|
+
speed 100
|
840
|
+
|
841
|
+
!
|
842
|
+
|
843
|
+
interface FastEthernet1/13
|
844
|
+
|
845
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
846
|
+
|
847
|
+
switchport mode trunk
|
848
|
+
|
849
|
+
channel-group 1 mode on
|
850
|
+
|
851
|
+
!
|
852
|
+
|
853
|
+
interface FastEthernet1/14
|
854
|
+
|
855
|
+
switchport trunk allowed vlan 1,10,20,1002-1005
|
856
|
+
|
857
|
+
switchport mode trunk
|
858
|
+
|
859
|
+
channel-group 1 mode on
|
860
|
+
|
861
|
+
!
|
862
|
+
|
863
|
+
interface FastEthernet1/15
|
864
|
+
|
865
|
+
description ### administration ###
|
866
|
+
|
867
|
+
switchport access vlan 2
|
868
|
+
|
869
|
+
duplex full
|
870
|
+
|
871
|
+
speed 100
|
872
|
+
|
873
|
+
!
|
874
|
+
|
875
|
+
interface Vlan1
|
876
|
+
|
877
|
+
no ip address
|
878
|
+
|
879
|
+
shutdown
|
880
|
+
|
881
|
+
!
|
882
|
+
|
883
|
+
interface Vlan2
|
884
|
+
|
885
|
+
description ### administration ###
|
886
|
+
|
887
|
+
ip address 192.168.11.52 255.255.255.0
|
888
|
+
|
889
|
+
!
|
890
|
+
|
891
|
+
interface Vlan10
|
892
|
+
|
893
|
+
description ### test vlan #1 ###
|
894
|
+
|
895
|
+
ip address 192.168.100.11 255.255.255.0
|
896
|
+
|
897
|
+
!
|
898
|
+
|
899
|
+
interface Vlan20
|
900
|
+
|
901
|
+
description ### test vlan #2 ###
|
902
|
+
|
903
|
+
ip address 192.168.101.11 255.255.255.0
|
904
|
+
|
905
|
+
!
|
906
|
+
|
907
|
+
ip forward-protocol nd
|
908
|
+
|
909
|
+
!
|
910
|
+
|
911
|
+
!
|
912
|
+
|
913
|
+
no ip http server
|
914
|
+
|
915
|
+
no ip http secure-server
|
916
|
+
|
917
|
+
!
|
918
|
+
|
919
|
+
no cdp log mismatch duplex
|
920
|
+
|
921
|
+
!
|
922
|
+
|
923
|
+
!
|
924
|
+
|
925
|
+
!
|
926
|
+
|
927
|
+
!
|
928
|
+
|
929
|
+
!
|
930
|
+
|
931
|
+
!
|
932
|
+
|
933
|
+
control-plane
|
934
|
+
|
935
|
+
!
|
936
|
+
|
937
|
+
!
|
938
|
+
|
939
|
+
!
|
940
|
+
|
941
|
+
!
|
942
|
+
|
943
|
+
!
|
944
|
+
|
945
|
+
!
|
946
|
+
|
947
|
+
!
|
948
|
+
|
949
|
+
!
|
950
|
+
|
951
|
+
!
|
952
|
+
|
953
|
+
banner exec
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
***************************************************************
|
958
|
+
|
959
|
+
This is a normal Router with a Switch module inside (NM-16ESW)
|
960
|
+
|
961
|
+
It has been pre-configured with hard-coded speed and duplex
|
962
|
+
|
963
|
+
|
964
|
+
|
965
|
+
To create vlans use the command "vlan database" in exec mode
|
966
|
+
|
967
|
+
After creating all desired vlans use "exit" to apply the config
|
968
|
+
|
969
|
+
|
970
|
+
|
971
|
+
To view existing vlans use the command "show vlan-switch brief"
|
972
|
+
|
973
|
+
|
974
|
+
|
975
|
+
Alias(exec) : vl - "show vlan-switch brief" command
|
976
|
+
|
977
|
+
Alias(configure): va X - macro to add vlan X
|
978
|
+
|
979
|
+
Alias(configure): vd X - macro to delete vlan X
|
980
|
+
|
981
|
+
***************************************************************
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
|
987
|
+
alias configure va macro global trace add_vlan $v
|
988
|
+
|
989
|
+
alias configure vd macro global trace del_vlan $v
|
990
|
+
|
991
|
+
alias exec vl show vlan-switch brief
|
992
|
+
|
993
|
+
!
|
994
|
+
|
995
|
+
line con 0
|
996
|
+
|
997
|
+
exec-timeout 0 0
|
998
|
+
|
999
|
+
privilege level 15
|
1000
|
+
|
1001
|
+
password ******
|
1002
|
+
|
1003
|
+
logging synchronous
|
1004
|
+
|
1005
|
+
line aux 0
|
1006
|
+
|
1007
|
+
exec-timeout 0 0
|
1008
|
+
|
1009
|
+
privilege level 15
|
1010
|
+
|
1011
|
+
logging synchronous
|
1012
|
+
|
1013
|
+
line vty 0 4
|
1014
|
+
|
1015
|
+
password 87zpg6a7
|
1016
|
+
|
1017
|
+
login
|
1018
|
+
|
1019
|
+
!
|
1020
|
+
|
1021
|
+
!
|
1022
|
+
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
```
|
1
文法
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
・CentOS7-1 → ESW1 → ESW2 → ESW1 → CentOS7-3
|
32
32
|
|
33
|
-
という経路
|
33
|
+
という経路で届いているものの二つがあり、
|
34
34
|
|
35
35
|
結果としてPingが二つReplyされている状況のようです。
|
36
36
|
|