以太网端口的端口编号规则。
在网络技术中,端口(Port)大致有两种意思:一是物理意义上的端口,比如,ADSL Modem、集线器、交换机、路由器用于连接其他网络设备的接口,如RJ-45端口、SC端口等等;二是逻辑意义上的端口,一般是指TCP/IP协议中的端口,端口号的范围从0到65535,比如用于浏览网页服务的80端口,用于FTP服务的21端口等等。
扩展资料:
常用的保留TCP端口号有:
HTTP 80,FTP 20/21,Telnet 23,SMTP 25,DNS 53等。
常用的保留UDP端口号有:
DNS 53,BootP 67(server)/ 68(client),TFTP 69,SNMP 161等。
每个TCP报文头部都包含源端口号(source port)和目的端口号(destination port),用于标识和区分源端设备和目的端设备的应用进程。
基本是这样进入配置模式
[SwitchA]vlan 10
[SwitchA-vlan10]port Ethernet 1/0/12.创建(进入)VLAN20,将E1/0/2加入到VLAN20
[SwitchA]vlan 20
[SwitchA-vlan20]port Ethernet 1/0/2方法21.进入以太网端口E1/0/1的配置视图
[SwitchA]interface Ethernet 1/0/12.配置端口E1/0/1的PVID为10
[SwitchA-Ethernet1/0/1]port access vlan 103.进入以太网端口E1/0/1的配置视图
[SwitchA]interface Ethernet 0/24.配置端口E1/0/2的PVID为20
[SwitchA-Ethernet1/0/2]port access vlan 20一下是一台我配置过的3600#
sysname main
#
radius scheme system
#
domain system
#
local-user admin
password simple fsx522
service-type telnet
level 3
#
acl number 3002
rule 0 deny ICMP destination 192.168.12.0 0.0.0.255 icmp-type echo
rule 1 deny TCP established destination 192.168.12.0 0.0.0.255
rule 2 permit ICMP source 192.168.12.0 0.0.0.255 icmp-type echo
rule 3 permit TCP established source 192.168.12.0 0.0.0.255
#
vlan 1
#
vlan 10
#
vlan 20
#
vlan 30
#
vlan 40
#
vlan 888
#
vlan 999
#
interface Vlan-interface1
ip address 192.168.1.1 255.255.255.0
#
interface Vlan-interface10
ip address 192.168.10.254 255.255.255.0
#
interface Vlan-interface20
ip address 192.168.11.254 255.255.255.0
#
interface Vlan-interface30
ip address 192.168.12.254 255.255.255.0
#
interface Vlan-interface40
ip address 192.168.13.254 255.255.255.0
#
interface Vlan-interface888
ip address 100.100.1.1 255.255.255.0
#
interface Vlan-interface999
ip address 200.200.1.1 255.255.255.0
#
interface Aux1/0/0
#
interface Ethernet1/0/1
duplex full
speed 100
port link-type trunk
port trunk permit vlan all
#
interface Ethernet1/0/2
duplex full
speed 100
port link-type trunk
port trunk permit vlan all
#
interface Ethernet1/0/3
port access vlan 20
#
interface Ethernet1/0/4
port access vlan 20
#
interface Ethernet1/0/5
port access vlan 20
#
interface Ethernet1/0/6
port access vlan 20
#
interface Ethernet1/0/7
port access vlan 20
#
interface Ethernet1/0/8
port access vlan 30
packet-filter outbound ip-group 3002 rule 0
packet-filter outbound ip-group 3002 rule 1
packet-filter outbound ip-group 3002 rule 2
packet-filter outbound ip-group 3002 rule 3
#
interface Ethernet1/0/9
port access vlan 30
packet-filter outbound ip-group 3002 rule 0
packet-filter outbound ip-group 3002 rule 1
packet-filter outbound ip-group 3002 rule 2
packet-filter outbound ip-group 3002 rule 3
#
interface Ethernet1/0/10
port access vlan 30
packet-filter outbound ip-group 3002 rule 0
packet-filter outbound ip-group 3002 rule 1
packet-filter outbound ip-group 3002 rule 2
packet-filter outbound ip-group 3002 rule 3
#
interface Ethernet1/0/11
port access vlan 30
packet-filter outbound ip-group 3002 rule 0
packet-filter outbound ip-group 3002 rule 1
packet-filter outbound ip-group 3002 rule 2
packet-filter outbound ip-group 3002 rule 3
#
interface Ethernet1/0/12
port access vlan 30
packet-filter outbound ip-group 3002 rule 0
packet-filter outbound ip-group 3002 rule 1
packet-filter outbound ip-group 3002 rule 2
packet-filter outbound ip-group 3002 rule 3
#
interface Ethernet1/0/13
port access vlan 30
packet-filter outbound ip-group 3002 rule 0
packet-filter outbound ip-group 3002 rule 1
packet-filter outbound ip-group 3002 rule 2
packet-filter outbound ip-group 3002 rule 3
#
interface Ethernet1/0/14
port access vlan 40
#
interface Ethernet1/0/15
port access vlan 40
#
interface Ethernet1/0/16
port access vlan 40
#
interface Ethernet1/0/17
port access vlan 40
#
interface Ethernet1/0/18
port access vlan 40
#
interface Ethernet1/0/19
port access vlan 40
#
interface Ethernet1/0/20
port access vlan 10
#
interface Ethernet1/0/21
port access vlan 10
#
interface Ethernet1/0/22
port access vlan 10
#
interface Ethernet1/0/23
port access vlan 888
#
interface Ethernet1/0/24
port access vlan 999
#
interface GigabitEthernet1/1/1
#
interface GigabitEthernet1/1/2
#
interface GigabitEthernet1/1/3
port access vlan 888
#
interface GigabitEthernet1/1/4
port access vlan 999
#
undo irf-fabric authentication-mode
#
interface NULL0
#
voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000
#
ip route-static 0.0.0.0 0.0.0.0 100.100.1.2 preference 60
#
user-interface aux 0 7
user-interface vty 0 4
authentication-mode scheme
#
return
以太网端口的端口编号规则
本系列交换机的端口均采用3位编号方式:interface type A/B/C。
l A:IRF中成员设备的编号,若未形成IRF,其取值为1。
l B:设备上的槽位号。取值为0,表示设备上固有端口所在的槽位;取值为1,表示接口模块扩展卡1上端口所在的槽位;取值为2,表示接口模块扩展卡2上端口所在的槽位。
l C:某槽位上的端口编号