×
all 4 comments

[–][deleted]  (4 children)

[deleted]

    [–]a_cute_epic_axisJust 'cause it ain't in my flair doesn't mean I don't have certs 2 points3 points  (2 children)

    That's not fully an accurate statement. Plenty of Cisco switches are Layer 3 switches and certainly can have IP addresses assigned directly to physical interfaces. E.g.

    interface g0/0
    no switchport
    ip addr 1.2.3.4 255.255.255.0
    

    A more important thing to find out from OP (to be fair, this might be in his updated packet tracer file, I don't have it), is he trying to route between vlans with this switch or not?

    To OP,* if the device you're using is layer 2*, then typically you would only assign a single ip address to a single vlan for management

    interface vlan 2
    ip addr 1.2.3.4 255.255.255.0
    

    If you try to assign an IP to multiple vlans at the same time, you'll either not have that work (only one will actually be active) or they'll work, but you can't route between vlans w/o another device in the mix.

    With a layer 3 capable switch, you would just do something like

    interface vlan 2
    ip addr 1.2.3.4 255.255.255.0
    
    interface vlan 3
    ip addr 5.6.7.8 255.255.255.0
    

    That said, you brought up that you're getting some sort of mismatch error. Sounds like you're either not setting the access vlan or maybe the native vlan on both sides of the link to the same issue. That's got nothing to do with IP address assignment.

    Using and posting packet tracer files might get you somewhere for ICND1 or maybe ICND2 studies, but you're going to see a massively diminishing return. Posting a screenshot of your topology along with relevant portions of your configs/show commands/error logs is going to allow a much greater group of people to offer assistance.

    [–]SalviClaus[S] 0 points1 point  (1 child)

    Hey thank you for the information. Im a little new to the vlan game. So I have updated my network and ill be sure to start a new thread with screen shots. Ill be sure to post them later today. Thanks again for all the help. Originally I though that all ports on a switch needed to have an ip address.

    [–]a_cute_epic_axisJust 'cause it ain't in my flair doesn't mean I don't have certs 1 point2 points  (0 children)

    Nope. Generally speaking, all ports on a ROUTER need to have an IP address, and switch ports do not. The lines get blurred though, as you can have layer 3 switches, or routers that backhaul Ethernet (OTV/VPLS/etc).

    [–]SalviClaus[S] 0 points1 point  (0 children)

    Alright I’ll do that once I get home. I may have to go back to chapter one.