这是我在拓朴上配置的单闭路由,可是老是分配不了IP 地址,请你们帮我看下

这是在交换机上的配置

Switch>en
Switch#
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#ex
Switch(config)#vlan 3
Switch(config-vlan)#ex
Switch(config)#int f0/1
Switch(config-if)#sw
Switch(config-if)#switchport access vlan 2
Switch(config-if)#sw
Switch(config-if)#switchport mode access
Switch(config-if)#ex
Switch(config)#int f0/2
Switch(config-if)#sw
Switch(config-if)#switchport access vlan 3
Switch(config-if)#sw
Switch(config-if)#switchport mode access
Switch(config-if)#ex
Switch(config)#int f0/10
Switch(config-if)#sw
Switch(config-if)#switchport mode trunk
Switch(config-if)#sw
Switch(config-if)#switchport trunk all
Switch(config-if)#switchport trunk allowed vlan all
Switch(config-if)#ex

 

这是在路由上的配置

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#no sh

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#int f0/0.2

%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to upRouter(config-subif)#ip add 2.2.2.1 255.255.255.0

% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.

Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#int f0/0.3

%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3, changed state to upRouter(config-subif)#ip add 3.3.3.1 255.255.255.0

% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.

Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 3

%Configuration of multiple subinterfaces of the same main
interface with the same VID (3) is not permitted.
This VID is already configured on FastEthernet0/0.2.

Router(config-subif)#ex
Router(config)#ex