Currently i am studying for NAT and from what i read, vlans on physical port on switch actually not good for NAT.
I search for a couple of times but only sources that i got, configure the vlan on physical port like
interface gi0/1
switchport mode access
switchport access vlan 10
Instead of doing this, i want to do
interface vlan 10
ip add 10.1.12.254 255.255.254.0
ip nat inside
What is the differences between interface gi0/1 and accessing vlan through that port, and interface vlan 10?
I cannot make encapsulation dot1q through interface vlan 10, or it works only for physical ports?
Let's say that i have two vlans, vlan 10 (WLAN) and vlan 99 (USERS). Vlan 10 has an IP address 10.1.12.0/23 and port is gi1/0/24. Vlan 99 has an IP address 10.1.14.0/24 and range is gi1/0/1-23. Do I need to configure them like,
interface range gi1/0/1-23
switchport mode access
switchport access vlan 99
or are there any way for me to configure only interface vlan 99?
I know this is a basic configuration but two of them making me so confused.
Many thanks