Here is my router's configurations (with fake public IP addresses):
interface GigabitEthernet0/0
ip address 113.160.61.14 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 101.96.10.141 255.255.255.192
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 172.16.2.28 255.255.255.248
ip flow ingress
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
ip nat inside source list ftth interface GigabitEthernet0/0 overload
!
ip route 0.0.0.0 0.0.0.0 113.160.61.13 100
ip route 0.0.0.0 0.0.0.0 101.96.10.129 200
!
ip access-list extended ftth
permit ip 192.168.7.0 0.0.0.255 any
permit ip 192.168.1.0 0.0.0.255 any
permit ip 192.168.8.0 0.0.0.255 any
permit ip 192.168.9.0 0.0.0.255 any
This is a result from show ip int b
:
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 113.160.61.14 YES NVRAM up up
GigabitEthernet0/1 101.96.10.141 YES manual up up
NVI0 113.160.61.14 YES unset up up
So as you can see we have two WAN interfaces to two different ISPs, we change some configurations and saw some behaviors as below:
- If I keep this setting, both WAN links are okay as we can ping
8.8.8.8
from them (ping source), the default route go to113.160.61.13
as expected. - If I change
ip nat inside source list ftth interface GigabitEthernet0/0 overload
toip nat inside source list ftth interface GigabitEthernet0/1 overload
, both WAN links are still okay as we can ping8.8.8.8
from them (ping source), the default route still go through113.160.61.13
- But if I did step 2, also change
ip route 0.0.0.0 0.0.0.0 101.96.10.129 200
toip route 0.0.0.0 0.0.0.0 101.96.10.129 20
, there is no more Internet, can ping8.8.8.8
from source101.96.10.141
but cannot from the other link - The Internet come back when I shutdown interface g0/0, default
route now points to
101.96.10.129
So can anyone explain these behaviors on step 2, 3 and 4? Is it NVI interface related? We would like to have both links UP and be able to ping 8.8.8.8
.