IP心得体会20

配置接口地址详细操作:

双击pc机(销售部),在基础配置的IPv4静态选项下面的IP地址输入10.177.10.1,子网掩码255.255.255.0,网关10.9.10.254。双击pc机(技术部),在基础配置的IPv4静态选项下面的IP地址输入10.177.20.1,子网掩码255.255.255.0,网关10.177.20.254。双击pc机(研发部),在基础配置的IPv4静态选项下面的IP地址输入10.177.30.1,子网掩码255.255.255.0,网关10.177.30.254。双击pc机(销售部2),在基础配置的IPv4静态选项下面的IP地址输入10.177.10.2,子网掩码255.255.255.0,网关10.177.10.254。双击pc机(研发部2),在基础配置的IPv4静态选项下面的IP地址输入10.177.30.2,子网掩码255.255.255.0,网关10.9.30.254。双击pc机(综合部),在基础配置的IPv4静态选项下面的IP地址输入10.177.40.1,子网掩码255.255.255.0,网关10.177.40.254。双击pc机(财务部),在基础配置的IPv4静态选项下面的IP地址输入10.177.50.1,子网掩码255.255.255.0,网关10.177.50.254。

配置access接口

配置代码(以LSW1为例):

interface Ethernet0/0/1

Port link-type access

Port default vlan 10

interface Ethernet0/0/2

Port link-type access

Port defaul vlan 20

interface Ethernet0/0/3

Port link-type access

Port defaul vlan 30

配置trunk接口

配置代码(以LSW1为例):

interface GigabitEthernet0/0/1

Port link-type trunk

Port trunk allow-pass vlan all

配置vlan间路由

interface Vlanif10

Ip address 10.177.10.254 24

配置链路聚合

配置代码(以LSW10为例):

Undo info-ceter enable

Dhcp enable

Interface vlanif 40

Ip address 10.177.40.254 24

Dhcp select global

Interface vlanif 50

Ip address 10.177.50.254 24

Dhcp select global

Interface meth0/0/1

Interface eth-trunk1

Undo port trunk allow-pass vlan1

Port trunk allow-pass vlan 40 50

interface GigabitEthernet 0/0/1

Eth-trunk1

interface GigabitEthernet 0/0/2

Eth-trunk1

配置STP

LSW12:Stp mode stp

Stp root primary

LSW13:Stp mode stp

Stp root secondary

静态路由的配置

配置代码(以R1为例):

Interface g0/0

Ip address 202.150.177.1 30

quit

Interface loo 0

Ip address 172.16.177.1 24

Ip route-static 172.30.177.0 24 202.150.177.2

Ip route-static 202.150.177.4 30 202.150.177.2

默认路由的配置

SW12:IP route-static 0.0.0.0 0.0.0.0 10.177.101.2

SW13:IP route-static 0.0.0.0 0.0.0.0 10.177.100.2

SW9:IP route-static 0.0.0.0 0.0.0.0 10.177.120.2

猜你喜欢

转载自www.cnblogs.com/zx99/p/11913461.html