|
![](https://cdn.hh010.com/static/image/common/ico_lz.png)
楼主 |
发表于 2015-12-4 16:21:43
|
显示全部楼层
L2-JR-SW1:
enable
vlan database
vlan 10 name JS
vlan 20 name KF
vlan 100 name NM
exit
conf t
hostname L2-JR-SW1
interface gig 0/1
switchport mode trunk
switchport trunk allowed vlan 1,10,20,100
exit
interface range fa 0/21-22
switchport mode access
switchport access vlan 100
exit
interface range fa 0/1-10
switchport mode access
switchport access vlan 10
exit
interface range fa 0/11-20
switchport mode access
switchport access vlan 20
exit
interface vlan 100
ip address 100.0.0.1 255.0.0.0
no shutdown
exit
ip default-gateway 100.0.0.254
exit
write
L2-JR-SW2:
enable
vlan database
vlan 10 name JS
vlan 20 name KF
vlan 100 name NM
exit
conf t
hostname L2-JR-SW2
interface fa 0/24
switchport mode trunk
switchport trunk allowed vlan 1,10,20,100
exit
interface range fa 0/1-10
switchport mode access
switchport access vlan 10
exit
interface range fa 0/11-20
switchport mode access
switchport access vlan 20
exit
interface vlan 100
ip address 100.0.0.2 255.0.0.0
no shutdown
exit
ip default-gateway 100.0.0.254
exit
write
L3-HJ-SW1
enable
vlan database
vlan 10 name JS
vlan 20 name KF
vlan 30
vlan 100 name NM
exit
conf t
hostname L3-HJ-SW1
ip routing
interface gig 0/1
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 1,10,20,100
exit
interface fa 0/24
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 1,10,20,100
exit
interface gig 0/2
switchport mode access
switchport access vlan 30
exit
interface vlan 10
ip address 192.168.10.254 255.255.255.0
no shutdown
exit
interface vlan 20
ip address 192.168.20.254 255.255.255.0
no shutdown
exit
interface vlan 30
ip address 10.0.0.1 255.255.255.252
no shutdown
exit
interface vlan 100
ip address 100.0.0.254 255.0.0.0
no shutdown
exit
ip default-network 100.0.0.254
ip route 172.20.0.0 255.255.0.0 10.0.0.2
exit
write
RT1:
不知道在RT1上如何配置为 100.0.0.3 ,并且可以另 带内网管主机 通过这个 IP 地址访问到 RT1?
多谢!
解决了这个问题,
L2-JR-SW3应该也就能够通过带内网管主机访问到了。
enable
vlan database
vlan 10 name JS
vlan 20 name KF
vlan 100 name NM
exit
conf t
hostname RT1
ip default-gateway 100.0.0.254
interface gig 0/2
ip add 10.0.0.2 255.255.255.252
no shutdown
exit
interface gig 0/0
ip add 172.20.0.254 255.255.0.0
no shutdown
exit
ip route 192.168.10.0 255.255.255.0 10.0.0.1
ip route 192.168.20.0 255.255.255.0 10.0.0.1
exit
write
|
6#
2015-12-4 16:21:43
回复(0)
收起回复
|