cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
732
Views
0
Helpful
2
Replies

L2 and L3 Ip configuration confusion

Lee Flix
Level 1
Level 1

Hi,


I'm confused between this two configuration

interface TenGigabitEthernet3/1
switchport
switchport access vlan 999
switchport mode access
switchport nonegotiate
no ip address
logging event link-status
!
interface Vlan 999
ip address 10.193.1.141 255.255.255.252
no ip redirects
no ip proxy-arp
ip pim sparse-dense-mode
ip route-cache flow
logging event link-status
end

compare to this


interface TenGigabitEthernet3/1
no switchport
ip add 10.193.1.141 255.255.255.252
no ip redirects
no ip proxy-arp
ip pim sparse-dense-mode
ip route-cache flow
logging event link-status
!

Both have the same output but what is the difference why do still need to create SVI then assigned to physical interface?

1 Accepted Solution

Accepted Solutions

snarayanaraju
Level 4
Level 4

Hello - Making a physical port (In your case  TenGigabitEthernet3/1) as a L3 switchport will serve as a L3 interface only for the device connected to this port only. You cannot share this L3 interface with other ports. Whereas, SVI is logical L3 interface. Many physical ports can be assigned to this Logical L3 interface so that many devices can use this L3 interface as its gateway or any routing needs.

HTH. Rate me if it answers your question. Thanks

regards/SAIRAM

View solution in original post

2 Replies 2

snarayanaraju
Level 4
Level 4

Hello - Making a physical port (In your case  TenGigabitEthernet3/1) as a L3 switchport will serve as a L3 interface only for the device connected to this port only. You cannot share this L3 interface with other ports. Whereas, SVI is logical L3 interface. Many physical ports can be assigned to this Logical L3 interface so that many devices can use this L3 interface as its gateway or any routing needs.

HTH. Rate me if it answers your question. Thanks

regards/SAIRAM

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

Actually they often don't have exactly the same output, because the no switchport suppresses some L2 stuff.

For a p2p, you often use the no switchport variant, but a couple of reasons why you might want to use the VLAN variant, you can use the SVI across a trunk port, allowing both a logical L3 p2p and L2.  If you have a device that supports hardware redundancy, like a stack or dual sup chassis, if port supporting the p2p SVI fails, you can repatch to another port already previously configured to support the SVI.  (In the latter, you wouldn't be actively using more than one port at any one time.)