-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test-Commands.txt
114 lines (83 loc) · 2.01 KB
/
Test-Commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
PC IP config ================
192.168.15.5
192.168.15.1
192.168.25.5
192.168.25.1
192.168.35.5
192.168.35.1
192.168.100.5
192.168.100.1
192.168.100.6
192.168.100.1
VLAN port creation ============ S2
hostname S2
vlan 15
name Civil
vlan 25
name MME
vlan 35
name WRE
vlan 11
name Management
show vlan br
int vlan 11
ip add 192.168.11.2 255.255.255.0
ip default-gateway 192.168.11.1
no shutdown
Port assignment ============ S2
int f0/5
switchport mode access
switchport access vlan 15
int f0/6
switchport mode access
switchport access vlan 25
int f0/7
switchport mode access
switchport access vlan 35
int g0/1
switchport mode trunk
switchport trunk native vlan 11
switchport trunk allowed vlan 15,25,35,11
Router Config =============== R1
int g0/0.15
encapsulation dot1q 15
ip address 192.168.15.1 255.255.255.0
int g0/0.25
encapsulation dot1q 25
ip address 192.168.25.1 255.255.255.0
int g0/0.35
encapsulation dot1q 35
ip address 192.168.35.1 255.255.255.0
int g0/0.11
encapsulation dot1q 11
ip address 192.168.11.1 255.255.255.0
int g0/0
no shutdown
===================
int s0/0/0
ip address 35.0.0.1 255.255.255.252
clock rate 64000
no shutdown
int s0/0/0
ip address 35.0.0.2 255.255.255.252
no shutdown
int g0/0
ip address 192.168.100.1 255.255.255.0
no shutdown
x2
ip route 0.0.0.0 0.0.0.0 s0/0/0
x2
ACL ============================
access-list 101 deny tcp host 192.168.15.5 host 192.168.100.5 eq www
access-list 101 permit tcp host 192.168.15.5 host 192.168.100.6 eq ftp
access-list 101 permit tcp host 192.168.25.5 host 192.168.100.5 eq www
access-list 101 permit tcp host 192.168.25.5 host 192.168.100.6 eq ftp
access-list 101 permit tcp host 192.168.35.5 host 192.168.100.5 eq www
access-list 101 deny tcp host 192.168.35.5 host 192.168.100.6 eq ftp
access-list 101 permit ip any any
int g0/0.15
ip access-group 101 in
int g0/0.25
ip access-group 101 in
int g0/0.35
ip access-group 101 in