Adding IP Address For An Interface

Adding ipv4

> enable 
# config t 
(config)# int gi0/1 // choose this interface
(config-if)# ip add 192.168.88.55 255.55.255.0
(config-if)# no shutdown // turn on interface
(config-if)# ctrl + z
# show run int gi0/1 // show the configured ip
# show int gi0/1 // show more configuration
# ping 192.168.88.1 // test connection to other hosts

Adding IPv6 address

> enable 
# config t 
(config)# int gi0/1 // choose this interface
(config-if)# ipv6 add 2001::2/64
(config-if)# no shutdown // turn on interface
(config-if)# ctrl + z
# show ipv6 int bri //show bridge interface
# show ipv6 inter // more details
# show run int gi0/1
# ping 2001::1 // ping snother router
# ping ipv6 2001::1