text stringlengths 0 6.55k |
|---|
VLAN 1 |
Subnet 192.168.1.0 |
Interface VLAN 1 |
interface vlan 1 |
ip address 192.168.1.8 255.255.255.0 |
(Shaded Area is Inside the Switch) |
Figure 6-6 Switch Virtual Interface (SVI) Concept Inside a Switch |
By using interface VLAN 1 for the IP configuration, the switch can then send and receive frames on any of the ports in VLAN 1. In a Cisco switch, by default, all ports are assigned to VLAN 1. |
In most networks, switches configure many VLANs, so the network engineer has a choice of where to configure the IP address. That is, the management IP address does not have to be configured on the VLAN 1 interface (as configured with the interface vlan 1 command seen in Figure 6-6). |
A Layer 2 Cisco LAN switch needs only one IP address for management purposes. However, you can choose to use any VLAN to which the switch connects. The configuration then includes a VLAN interface for that VLAN number, with an appropriate IP address. |
|||||||||||||||||||| Technet24 |
|||||||||||||||||||| |
Chapter 6: Configuring Basic Switch Management 141 |
For example, Figure 6-7 shows a Layer 2 switch with some physical ports in two different VLANs (VLANs 1 and 2). The figure also shows the subnets used on those VLANs. The net-work engineer could choose to use either |
■ Interface VLAN 1, with an IP address in subnet 192.168.1.0 ■ Interface VLAN 2, with an IP address in subnet 192.168.2.0 |
Interface VLAN 1 |
Interface VLAN 2 |
VLAN 1 |
Subnet 192.168.1.0 |
? |
Which VLAN Should I Use for Management? |
VLAN 2 |
Subnet 192.168.2.0 |
(Shaded Area is Inside the Switch) |
Figure 6-7 Choosing One VLAN on Which to Configure a Switch IP Address |
Note that you should not try to use a VLAN interface for which there are no physical ports 6 assigned to the same VLAN. If you do, the VLAN interface will not reach an up/up state, |
and the switch will not have the physical ability to communicate outside the switch. |
NOTE Some Cisco switches can be configured to act as either a Layer 2 switch or a Layer 3 switch. When acting as a Layer 2 switch, a switch forwards Ethernet frames as discussed in depth in Chapter 5, “Analyzing Ethernet LAN Switching.” Alternatively, a switch can also act as a multilayer switch or Layer 3 switch, w... |
2 switching and Layer 3 IP routing of IP packets, using the Layer 3 logic normally used by routers. This chapter assumes all switches are Layer 2 switches. Chapter 17, “IP Routing in the LAN,” discusses Layer 3 switching in depth along with using multiple VLAN interfaces at the same time. |
Configuring the IP address (and mask) on one VLAN interface allows the switch to send and receive IP packets with other hosts in a subnet that exists on that VLAN; however, the switch cannot communicate outside the local subnet without another configuration setting called the default gateway. The reason a switch needs ... |
■ To send IP packets to hosts in the same subnet, send them directly |
■ To send IP packets to hosts in a different subnet, send them to the local router; that is, the default gateway |
Figure 6-8 shows the ideas. In this case, the switch (on the right) will use IP address 192.168.1.200 as configured on interface VLAN 1. However, to communicate with host A, on the far left of the figure, the switch must use Router R1 (the default gateway) to forward |
|||||||||||||||||||| |
|||||||||||||||||||| |
142 CCNA 200-301 Official Cert Guide, Volume 1 |
IP packets to host A. To make that work, the switch needs to configure a default gateway setting, pointing to Router R1’s IP address (192.168.1.1 in this case). Note that the switch and router both use the same mask, 255.255.255.0, which puts the addresses in the same subnet. |
VLAN 1 |
Subnet 192.168.1.0 |
A |
Other IPv4 Subnets |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.