H3C s5024p Switch Interconnect experiment

Source: Internet
Author: User

The first Tuesday Network management Experiment Report

Switch Interconnection experiment

Test Wiring diagram:

Switch Panorama:

Switches can be configured via HyperTerminal and Telnet

?

?

?

Control cable connected switch console port and computer host (can only transfer commands can not communicate, to communicate must connect the host and the switch through the network cable)

Connect other computers with a network cable, including switches and hosts (only the network cable can ping through)

The top and bottom two rows are the network cable socket, can see the light

Configuration Switch2 switch1 is the same.

<Quidway> SYS

Enter system view, return to user view with Ctrl + Z.

[Quidway]sysname SWITCH2

[Switch2]int Vlan1

[Switch2-vlan-interface1]ip addr 192.168.10.2 255.255.255.0

?

[Switch2-vlan-interface1]

% SWITCH2 PORT LINK STATUS Change:

Gigabitethernet0/10:turns into the state

?

% SWITCH2 l2inf/5/vlanif LINK STATUS Change:

Vlan-interface1:turns into the state

?

% SWITCH2 Ifnet/5/updown:line protocol on the interface Vlan-interface1 turns i

Nto up State

?

?

***************************************************************

* Copyright (c) 2002-2006 Huawei Technologies Co., Ltd. *

* All rights Reserved *

* Without the owner ' s prior written consent, *

* No decompiling or reverse-engineering shall be allowed. *

***************************************************************

?

User interface aux0/0 is available

?

?

Please press ENTER.

?

?

HyperTerminal Connection Switch1 Connected host

<switch2>ping 192.168.10.1

PING 192.168.10.1:56 Data bytes, press Ctrl_c to break

Reply from 192.168.10.1:bytes=56 sequence= 1 ttl= time = ms

Reply from 192.168.10.1:bytes=56 sequence= 2 ttl= time = ms

Reply from 192.168.10.1:bytes=56 sequence= 3 ttl= time = ms

Reply from 192.168.10.1:bytes=56 sequence= 4 ttl= time = ms

Reply from 192.168.10.1:bytes=56 sequence= 5 ttl= time = ms

?

---192.168.10.1 ping statistics---

5 packet (s) transmitted

5 packet (s) received

0.0% Packet Loss

Round-trip Min/avg/max = 30/30/31 ms

?

Configure native IP only the last one is different, guaranteed to be in the same LAN as the switch

?

SWITCH2 192.168.10.2 Host 2 192.168.10.3

Switch1 192.168.10.1 Host 1 192.168.10.4

?

a gateway is essentially a network that leads to other networksIPaddress . Like a network .Aand NetworkB, the networkAof theIPaddress range is"192.168.1.1~192. 168.1.254 ", the subnet mask is255.255.255.0; networkBof theIPaddress range is"192.168.2.1~192.168.2.254", the subnet mask is255.255.255.0. In the absence of a router , the two networks cannot beTCP/IPcommunication, even if two networks are connected on the same switch (or hub ),TCP/IPThe protocol will also be based on the subnet mask (255.255.255.0) to determine that the hosts in the two networks are in different networks. To achieve communication between the two networks, you must pass through the gateway. If the networkAthe host in the Discovery Packet is not on the local network and forwards the packet to its own gateway, which is then forwarded to the network by the Gateway .Bthe gateway, networkBthe gateway is forwarded to the networkB(as shown in the attached drawings). NetworkAto the networkBthe process of forwarding a packet. in today's many local area network adoption is the road Origin access network, so usually refers to the gateway is the router's IP address, the router must be in the same network segment as the host, observing whether the network number is the same through the subnet mask and IP address

IPaddress is a +Binary number of bits, usually divided into4a"8bits binary number"(i.e.4bytes). IPaddresses are usually used" dotted decimal notation (a.b.c.d) in the form of which,a,b,c,d are 0 A decimal integer between ~255.

The subnet mask cannot exist alone, it must be combinedIPaddress together with the addresses. The subnet mask has only one function, which is to put aIPThe address is divided into two parts: network address and host address . ForAclass address, the default subnet mask is255.0.0.0; forBThe default subnet mask for class addresses is255.255.0.0; forCThe default subnet mask for class addresses is255.255.255.0.

the length of the subnet mask is also +bit, the left is the network bit , with binary digits"1"said,1is equal to the length of the network bit, the right is the host bit, the binary number"0"said,0number equals the length of the host bit. The purpose of this is to allow the mask to be IP address to do bitwise AND operation with 0 to cover the original host number, without changing the original network segment number, and easily through 0 The number of digits in the subnet determines how many hosts

?

Like 192.168.0.1 and 192.168.0.2.
1. Subnet mask is 255.255.255.0
So 192.168.0.X in the same network segment, can access each other.
2. Hope the Mask is 255.255.0.0
So 192.168.x.x in the same network segment, can access each other.]

?

The subnet mask tells us which ones are the network address and the host address?

????? For example, IP address 192.168.1.25??? Subnet mask 255.255.255.0?

So the network address is 192.168.1.0?? The host address is??????

? for example?;? IP address 192.168.1.25???? Subnet mask 255.255.0.0?

So the network address is 192.168.0.0?? The host address is 1.25? The rest of the part is the host address.

Computers in the same network segment can communicate directly, but different network segments cannot communicate? For example, 255.255.255.0???? And 255.255.0.0? Is it possible to communicate directly? So there's a concept called the default gateway? He is a bridge between different network segments, with a default gateway to communicate across the network segment.

HyperTerminal configuration Telnet

<switch2>sys

Enter system view, return to user view with Ctrl + Z.

[Switch2]int Vlan1

[Switch2-vlan-interface1]return

<switch2>system-view

Enter system view, return to user view with Ctrl + Z.

[Switch2]user-interface vty 0

[Switch2-vty0]set Authentication password Huawei

[Switch2-vty0]

Telnet SWITCH2 192.168.10.2

Telnet Login

?

To exit from HyperTerminal when the console is busy appears

Quit after entering user state

?

?

?

?

Communication with each other

192.168.10.11 is another switch

?

?

?

?

?

MAC Address Learning

?

?

?

<switch2>dis mac-address

Reading entire MAC table. Please wait ...

MAC ADDR VLAN ID State PORT INDEX AGING time (s)

?

0025-64a3-1d0d 1 learned gigabitethernet0/8 AGING

0025-64A3-BC10 1 learned gigabitethernet0/4 AGING

0025-64a3-be06 1 learned gigabitethernet0/6 AGING

?

---3 MAC address (es) found---

?

?

MAC addresses and which ports they connect to the switch

?

You can see 4 6 8 ports and 11 because long time no communication has been removed

?

?

?

H3C s5024p Switch Interconnect experiment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.