Three-tier switch gateway set default mode

Source: Internet
Author: User
Tags exit config

Contact with the switch has been for some time also, you can find that some of the content seems more confused, such as: Switch configuration default gateway, configuration of the specific command has been very familiar, but now is not quite understand why to complete the switch gateway settings, I also find some information on the Internet, and some say to remote access to the switch, Some say the communication between different networks!

I hope that the network master not hesitate to enlighten, say why to configure the default gateway on the switch, in what circumstances to configure the gateway, finally can give some examples, thank you.

Remote configuration and management of switches to facilitate telnet to the two-tier switch.

To use Telnet login to connect to the switch, the switch must have an IP address, the port of the second layer switch is unable to set the IP address, but because the switch has a VLAN1 interface by default, the VLAN interface can be set IP address, so for the two-tier switch, its administrative address, Is the address of the VLAN1 interface.

The switch gateway settings are set by the following methods:

Switch#config T

Switch (config) #interface vlan 1

Switch (config-if) #ip address 192.168.1.254 255.255.255.0

Switch (config-if) #no shutdown

Switch (config-if) #exit

Switch (config) #

After the two-tier switch is configured to manage IP addresses, the "Telnet 192.168.1.254" can be used to log in to the switch in the same network segment of the administrative address. However, to log on to a two-tier switch connected to another network segment across a network segment, you must specify a default gateway for the two-tier switch configuration, and the two-tier switch for both sides to be configured with the specified default gateway address.

Configure the default gateway address for the specified switch using the IP default-gateway command, for example, to configure the default gateway address to 192.168.1.1, the Switch Gateway Settings command is:

Switch (config) #ip Default-gateway 192.168.1.1

Switch (config) #exit

Switch#write

For a three-tier switch, you do not need to configure the administrative address and the default gateway address, and you can use the IP address of any three-tier interface on the three-tier switch to log on remotely.

Communication between different networks must be set up a forwarding datagram address, this address must be configured to a three-tier interface, which is set up in the computer gateway, switch gateway settings often need to set the route.

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.