Chinaunix首页 | 论坛 | 博客
  • 博客访问: 562912
  • 博文数量: 130
  • 博客积分: 7473
  • 博客等级: 少将
  • 技术积分: 1466
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-10 22:29
文章分类

全部博文(130)

文章存档

2012年(1)

2011年(22)

2010年(2)

2009年(58)

2008年(47)

分类: 系统运维

2008-12-29 16:57:05

实现方法:
+++++++++++++++++++++++++++++++++++++++++++++++
Sw0
+++++++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
line vty 0 4
password pass123
login
exit
enable password pass123
in vlan 1
ip add 172.16.1.1 255.255.0.0
no sh
end
write
++++++++++++++++++++++++++++++++++++++++++++++++
解释:vlan1IP不过是大多是这样设罢啦!
也可以给vlan 10 ,100,设这个管理IP。但要注意:
主机必须在设置IPvlan里。
如果使用单臂路由技术,并且交换机和主机不在一个网段里那么必须给交换机设置网关。ip default-gateway IP
例如:
配置:
+++++++++++++++++++++++++++++++++++
sw0
+++++++++++++++++++++++++++++++++++
en
vlan d
vlan 10
exit
conf t
in f0/1
sw m t
exit
line vty 0 4
pass 123
login
exit
enable pass 123
in vlan 10
ip add 172.16.0.1 255.255.0.0
no sh
exit
ip default-gateway 172.16.0.254
end
++++++++++++++++++++++++++++++++++++
r1
+++++++++++++++++++++++++++++++++++
en
conf t
in f0/0
no sh
exit
in f0/0.1
encapsulation dot1q 10
ip add 172.16.0.254 255.255.0.0
exit
in f0/1
ip add 192.168.1.1 255.255.255.0
no sh
阅读(1045) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~