Mode of the switch port to connect to a router

I wonder what mode to set the switchport is connected to a router.

I guess the cable between the router is connected to a port in trunk mode (for all the VLANS defined)? Then I Lass with gateways for VLANs pointing to the router routing interfaces?

So in this way, if a neighboring switch does not know how to route a packet to an unknown IP address, the packet is sent on the trunk to the other switch. Here the appropriate VLAN SVI sends the packet to the appropriate router interface. Is this correct or nearly correct?

Hi Atle,

You can connect a trunk port or port access to a router. If you choose to use an access port, the router will form an adjacency only through the VIRTUAL LAN defined in this access port. If you choose a trunk port, you can use dot1q encapsulation on subinterfaces of adjacencies form on several VLANs. If you use a trunk you would this type of configuration:

On the switch:

item in gi1/0/1 interface

switchport mode trunk

switchport trunk encapsulation dot1q

switchport trunk allowed vlan a to c

On the router

gi0/0.a interface

encapsulation dot1q one

IP address x.x.x.x y.y.y.y

!

interface gi0/0.b

encapsulation dot1q b

IP address v.v.v.v y.y.y.y

!

interface gi0/0.c

encapsulation dot1q c

IP address z.z.z.z y.y.y.y

Here's a good tutorial on this subject:

http://www.howtonetwork.NET/public/708.cfm

Cisco service documentation:

http://www.Cisco.com/en/us/docs/iOS/12_0t/12_0t1/feature/guide/8021Q.html

To answer your question, you can use the router as a default gateway for hosts. In this case, should not have an IVR on the switch, except for MANAGEMENT purposes. Traffic from the hosts would take the path of the L2 to the router and then the router would make the next decision of transfer for the package. If you have two routers, you could do a safe for both routers and run a FHRP between them for redundancy.

HTH

Anthony

Tags: Cisco Network

Similar Questions

  • Photosmart HP 6510 - can't find the USB port to connect to the computer. It is right in front of my face?

    Photosmart IHP 6510 - can't find the USB port to connect to the computer. It is right in front of my face? I can't find a diagram online. do not have wireless capability. With the help of MacPro with Snowleopard.Thanks.

    Hello

    The usb port is not #22. as seen in the picture. It's in the back of the printer on the side right hiand.

    Best regards

    ERICO

  • not connected to the internet. Checked, connections w / wireless router. Everything looks ok. still no signal

    All of a sudden not connected to the internet. Checked, connections w / wireless router. Everything looks ok. still no signal.

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?

    Refer to the following articles. The steps of troubleshooting in these articles may help you resolve this problem.
    How to troubleshoot possible causes of Internet connection problems in Windows XP
    http://support.Microsoft.com/kb/314095
    How to troubleshoot wireless network connections in Windows XP Service Pack 2
    http://support.Microsoft.com/kb/870702

  • How to extend the network and using the Ethernet port to connect an older computer without wifi capability

    I have a wireless network with my Time Capsule, but also I have an old computer without wifi capability. Is it possible to share the connection to this computer that connects an airport express (model A1264) to extend it and the computer thought that the ethernet port on the Airport express?

    Thank you.

    Yes

  • Use the ethernet port to connect a pc

    Hello

    I intend to use my raspberry pi to do some projects, but is not close to the router (needs thought Ethernet connection - and before anyone asks I'm not able to use a wifi dongle to connect because of the requirements of the project size wise), but near my officejet 6700, can I use the Ethernet port on the printer to connect my raspberry pi to the network from that the printer is connected. I have to play with settings?

    Can anyone help

    Thanks in advance

    Martin

    No you can not use the Ethernet port on the printer.  It is only to connect the printer to a wired network.

  • SmartView Essbase connection on the default port, must connect to 6423

    Hi all

    We have Hyperion 11.1.2.2.30x installed and configured with full SSL everywhere.  With this, we have Essbase successfully listening on 6423 (6423 only, we have disabled 1423) safely and all components (planning, EN, Calcmgr, etc.) are in communication with success too.  Thereby when attempting to connect to Essbase via SmartView, we receive an error stating ' unable to communicate to < essbaseservername >:1423.  The issue is that SmartView trying to connect on the default port (1423) instead of the safe harbour 6423.

    In environmental assessment, we have added a provider using the secure connection (< essbaseservername >: 6423: secure) that we are able to use in environmental assessments, but in SmartView is always looking for 1423.  No idea where this becomes SmartView and or how I can get it to connect to 6423?  Thanks in advance for any help you are able to provide.  In addition, all other connections through SmartView (SSL) are able to connect successfully.

    SmartView version 11.1.2.2.310

    Hyperion: all versions 11.1.2.2.30x

    If SSL is enabled by the EMP for Essbase configurator and the value of setting SSL configuration in the essbase.cfg then when you connect to Essbase in Smart View the safe option should be available for example "EssbaseCluster-1: SURE.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • remote access to the computer that is connected to a router wireless

    Hello Forum members

    I have a 4-port/router set-up wireless (compatible VPN) in the office.

    3 PC (Windows 7 Pro) is connected to a router (wired connection).

    1 VOIP adapter is connected to a router (wired connection).

    1 PC (Windows XP Pro SP3) is connected to a router (Wi - Fi).

    When I'm on the field, I need to access these devices via VPN. I can access 3 PC (connecting to the wired router) via VPN.

    However, I can not connect to a PC (wireless connection to the router) via VPN.

    Could you please tell me how I can access this PC (wireless connection to the router) via VPN?

    This PC (Windows XP Pro SP3) seems to need further adjustments under Windows Service.

    Thank you.

    Hello

    The question you have posted will be well suited in the TechNet forums. Click on the link below.

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

  • I want to see all the devices that are connected to my router

    I have a router E1200 and it is very good, however I have noticed that there are 12 devices connected to my router so infact it should be only 4 devices. I would like to see all the devices that are connected and disconnect those who do not belong to HELP!

    You use software to see all the devices that are supposed to be connected to your router? You can reset and start over with your router.  Make sure you have security enabled on it as WPA Personal. You can try a DHCP reservation so to ensure that devices that will have access to your router are those you have included on the list.

  • How to limit the voltage common mode for the switch

    The user manual mentions a maximum of ±12V ground for my switch (pxi-2536) but I do not see an entry in the field on the pinout of the connector. If I have a floating supply, should I connect the ground to the chassis on the ground on the back of the PXI? Is there a better way to limit the common mode voltage?

    Thank you specify, it makes much more sense!  The best way to go about this that seems will be grounded to the negative terminal of your power supply to ground the chassis security, as I think you suggested at the beginning.  I don't know what frame you have, but you should be able to find a "Reason for connection security" section in the manual. For example, here are the 1044 chassis manual, with the present article is on page 2-4. http://www.NI.com/PDF/manuals/371360a.PDF

    This should take care of it and avoid Earth loops!

  • where to find the switch for wireless connection on computer laptop esprimoV5535

    get the message {connection Wi - Fi doesn't work}, but it is not no matter what visible switch on laptop so presumably its located

    via the keyboard

    Hello

    ·         If it works much earlier?

    Through my research, I think it's the F1 key, you need to press on and press and hold the FN key (lower-left beside Ctrl) at the same time. This should illuminate the LED on the front of the computer laptop-extreme right wireless.

    You can view the documentation for the laptop to switch wireless for more information.

    For any other help, I suggest you to contact your laptop manufacturer support.

    Here is the link: http://support.ts.fujitsu.com/Download/Index.asp?lng=COM&Level1=&LNID=44

    I hope this helps.

  • Hardening of switch ports to connect to company no switches

    Hello

    I was wondering if there where any s doco on the hardening switches

    I have a few commands that I use on cisco

    switchport nonegotiate
    No cdp enable
    spanning tree enable bpdufilter

    but I'm trying to translate this in command of 8134f 8024f

    Hello

    Here is the CLI guide ftp://ftp.dell.com/Manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/powerconnect-8100_Reference%20Guide_en-us.pdf

    The controls you need to replace those who are:

    Switchport nonegotiate disables the DTP, which is a Cisco technology and is not used on our switches.

    no activation of ISDP

    spanning tree portfast default bpdufilter

  • HP Photosmart plus series B209: could not find the usb port to connect to my laptop where to find no. on this this small opening.

    Please help, I am trying to set up wireless and can not find the place to put the usb cable to the printer. Thank you!

    Very appreciated, classified into usb!

  • Having trouble getting the voice VLAN on the switch X1052P to work at all

    Can someone help me understand how to set up the voice VLAN X1052P? I spent several hours trying to get this working and it does not work. I spent about 4 hours on the phone with a Dell technician that night and he couldn't get it to work and finally gave up. He told me that I had to spend my warranty to ProSupport because he did not know how to solve the problem. What group of *. It's a simple configuration of VLAN. What must be so picky about? In any case...

    Setting up the VIRTUAL LAN must be fairly simple, but apparently on this switch is not. The user guide page 406 is not very useful except explaining what the different options. I must admit I am not an expert VLAN so I dunno I've misconfigured something. But remember, Dell technology could not operate either.

    Here's my situation... I have VoIP phones on my network connected to a network wall jack. Connected to phones are my computers of users. The computer of the user and its respective VoIP phone, both share the same data cable. Before replacing Cisco managed Internet service provider spend all it worked well. The problem is that they had direct access to our network so I removed the switch and installed the X1052P in its place. I talked to the ISP to let them know what I'm doing and they said everything I had to do was setup VLAN ID: 15 for the voice VLAN because this is the VLAN ID that the router uses to route telephone traffic. Router PSI is also the server DHCP VLAN 15 and issues IP for phones using 172.27.0.0/24 with a DHCP 172.27.0.50 range - 150.

    I tried to configure the switch using parameters of VLAN static and settings VLAN voice and neither one also seems to do what I want it to do.

    Network administration > VLAN > VLAN static

    Network administration > VLAN > Voice VLAN

    I activated the profile 'phone' on ports I want to added to the voice VLAN and it does not work. Moreover, 47 the switch port is connected directly to the ISP router and is configured as a trunk with the default port VLAN 1 unidentified and tag VLAN 15. For other ports I tried the general implementation, access and trunk of the parameters on each port to see if I could get something going and still nothing happens. When I set up the ports as General ports VLAN, I made adding VLAN VLAN 1 and VLAN 15 as a VLAN tagged not marked. It still does not.

    This is the short story from where I am now. Any help is greatly appreciated.

    FYI, as a follow up I finally solved the problem. I hope this information helps someone else that can encounter the same problem.

    After buying the ProSupport warranty upgrade ($121 out-of-Pocket mind you) and addressing a total of 4 technicians ProSupport expert technician a 3rd another level (only available via chat message between one of the ProSupport phone technicians and the 3rd Tier expert tech - i.e. I couldn't talk or chat with this person me) the consensus was that the material must be bad. When I bought the X1052P I bought two of them, so the best way to know if it was a bad switch was simply configure the other switch and see if the behavior occurs on this one, too. Well, this switch also restarted each time I assigned the profile 'phone' to more than 13 or 14 ports in the switch. It seems that it was not a hardware problem after all.

    I went back to the switch original and tried new things hoping that I could fall on a solution and it turns out that the solution was NOT to use the voice VLAN on the switch. It does not work!

    SOLUTION: I set the VLAN ID: 15 manually and no has not assigned any phone profiles to one of the ports. This is how I solved the problem.

    So he has bad software on the switch. I tried to see if there are updates of the firmware on the Dell support site, but there is none. Configure manually the phone VLAN was the solution. What a freaking nightmare which turned out to be. Maybe someone in Dell could note this problem and test in-house. And, if you want to compensate me for the 20 + hours I spent working on this problem, which has be great, too.

  • Connection to the internet with the 8 port Gig switch

    Hey you all the benefits.  I have 6 desktop computers in my house right now, and each of them should be wired.  I thought I'd get the EG008W 8 port 10/100/1000 switch, but before I do that, I need to know if I can run the cable my modem Cat5 cable to a port on the switch uplink to provide access to each 6 workstations in my home?

    Thank you!!

    The WRT610N is not an uplink port. It has a port from the internet. As a router, it offers two different interfaces, one for the internet side and one for the side LAN (the side LAN is connected to a switch 4 ports). A router separates the two sides and routes traffic between them.

    An ethernet switch extends an ethernet network. It is not a router. It doesn't have an internet port or similar. It does not separate anything. He joins all devices connected on the same LAN.

    Older ethernet switches had uplink ports to post a link with other switches. This is because older switches do not have ports to detection automatic, which means that they are not able to know you used a cross-cable or right to connect. With the new switches you don't have to worry about it more. They configure each port correctly some cable you are using and any other device you connect to. All the switch ports are the same.

    You can get the EG switch that you mentioned before or any other ethernet switch to expand the number of ports wired in your LAN. One of the ports on the switch simply connecting to a port LAN of the WRT, and you can use all the remaining ports on the WRT and the switch. Do not connect the switch ethernet directly to your modem. Only the WRT.

  • Switch ports connected with cross cable on the same switch...

    Hi experts,

    Just got a doubt.

    If both a stand-alone switch ports are connected by a crossover cable, how will be the stp of attitude toward this scenario...

    Thank you

    Arun

    Hi arun,

    As we all know the switches use according to criteria of application PLEASE:

    (1) to root the lowest BID

    (2) a low-cost path to the bridge root

    (3) OFFERED the lowest sender

    (4) minimum port priority

    (5) the lowest port id.

    So in your senario until number 4 allvalues will be equal and there will be a match tie. So for port breakage id will be used and the port with the higher port number will be blocked and low port id will be in a State of fwding.

    Example:

    If you've been through e1/1 and e1/2 cable on the same switch then 1/1 b in condition of fwding all-in-1/2 will b in the blocking state.

    HTH,

    Kind regards

    Shri :)

Maybe you are looking for