搭建拓扑图
路由器上接口不够如何添加接口?
如何快速配置路由器接口的ip信息?
互联网主干部分网络配置
DNS服务器的ip配置和DNS解析地址
1、为每个路由器接口配置ip地址和子网掩码
router0配置
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 12.12.12.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
Router(config-if)#
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/2
Router(config-if)#ip address 13.13.13.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 192.168.10.2 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
router1配置
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 12.12.12.2 255.0.0.0
Router(config-if)#ip address 12.12.12.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 23.23.23.1 255.0.0.0
Router(config-if)#ip address 23.23.23.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
router2配置
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 13.13.13.2 255.0.0.0
Router(config-if)#ip address 13.13.13.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 24.24.24.1 255.0.0.0
Router(config-if)#ip address 24.24.24.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
router3配置
Router(config)#interface GigabitEthernet0/0
Router(config-if)#ip address 23.23.23.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface GigabitEthernet0/1
Router(config-if)#ip address 24.24.24.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#exit
Router#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Router(vlan)#
%SYS-5-CONFIG_I: Configured from console by console
vlan 10 name VLAN10
VLAN 10 modified:
Name: VLAN10
Router(vlan)#exit
APPLY completed.
Exiting....
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int vlan 10
Router(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
Router(config