发布网友 发布时间:2023-05-18 23:43
共3个回答
热心网友 时间:2023-05-20 05:34
根据楼主的要求,我用思科路由器/交换机一般通用的命令:热心网友 时间:2023-05-20 05:34
建议使用VLAN 2 VLAN 3热心网友 时间:2023-05-20 05:34
你是要做 单臂路由吧 但是一个VLAN1 不要DHCP 另一个 要DHCP吧追问对啊 具体怎么配置??追答HAO BA我配置个给你 你要用个交换机 化成两个VLAN 路由里面建设DHCP地址池
ip dhcp pool 2b
network 192.168.2.0 255.255.255.0(点2段的)
default-router 192.168.2.1
dns-server 218.207.128.4
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
plex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 2
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
plex auto
speed auto
shutdown
!
交换机配置Switch#show run
Building configuration...
Current configuration : 1079 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 3
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface Vlan1
no ip address
shutdown
!
interface Vlan2
no ip address
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login 我就这样配置的 f0/3是VLAN 2 F0\4是VLAN3
!
!
end