Mislim da za to moraš da imaš pool, tj. provajder treba da ti rutira određeni adresni prostor.
Recimo da imaš situaciju sa slike.
Neka je R2 provajderov ruter, a R1 tvoj. Ispod je primer koji bi trebalo da radi. Uključio sam i statičku translaciju za sam ruter i "servere" koji su možda tamo negde.
R1:
Code:
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
!
interface Serial1/0
ip address 150.12.1.1 255.255.255.252
ip nat outside
!
interface Serial1/1
ip address 150.12.2.1 255.255.255.252
ip nat outside
!
ip local pool Internet 150.168.1.4 150.168.1.15
ip route 0.0.0.0 0.0.0.0 150.12.1.2 name Default_1
ip route 0.0.0.0 0.0.0.0 150.12.2.2 name Default_2
ip nat inside source list 1 pool Internet overload
ip nat inside source static 192.168.1.1 150.168.1.1
ip nat inside source static 192.168.1.2 150.168.1.2
access-list 1 deny 192.168.1.0 0.0.0.15
access-list 1 permit 192.168.1.0 0.0.0.255
R2:
Code:
interface Serial1/0
ip address 150.12.1.2 255.255.255.252
ip verify unicast source reachable-via rx
!
interface Serial1/1
ip address 150.12.2.2 255.255.255.252
ip verify unicast source reachable-via rx
!
ip route 150.168.1.0 255.255.255.240 150.12.1.1 name Route_1
ip route 150.168.1.0 255.255.255.240 150.12.2.1 name Route_2
Code:
R1#sh ip route | b Gatew
Gateway of last resort is 150.12.2.2 to network 0.0.0.0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
150.12.0.0/30 is subnetted, 2 subnets
C 150.12.2.0 is directly connected, Serial1/1
C 150.12.1.0 is directly connected, Serial1/0
S* 0.0.0.0/0 [1/0] via 150.12.2.2
[1/0] via 150.12.1.2
R1#sh ip nat translations verbose
Pro Inside global Inside local Outside local Outside global
--- 150.168.1.1 192.168.1.1 --- ---
create 00:06:19, use 00:06:19 timeout:0,
flags:
static, use_count: 0, entry-id: 3, lc_entries: 0
--- 150.168.1.2 192.168.1.2 --- ---
create 00:06:15, use 00:06:15 timeout:0,
flags:
static, use_count: 0, entry-id: 4, lc_entries: 0
Code:
Gateway of last resort is not set
150.12.0.0/30 is subnetted, 2 subnets
C 150.12.2.0 is directly connected, Serial1/1
C 150.12.1.0 is directly connected, Serial1/0
150.168.0.0/28 is subnetted, 1 subnets
S 150.168.1.0 [1/0] via 150.12.2.1
[1/0] via 150.12.1.1
R2#debug ip packet
IP packet debugging is on
R2#ping 192.168.1.1 repeat 1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.
Success rate is 0 percent (0/1)
*Mar 1 00:44:20.803: IP: s=150.12.1.2 (local), d=192.168.1.1, len 100, unroutable
R2#ping 150.168.1.1 repeat 1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 150.168.1.1, timeout is 2 seconds:
!
Success rate is 100 percent (1/1), round-trip min/avg/max = 140/140/140 ms
*Mar 1 00:44:49.095: IP: tableid=0, s=150.12.1.2 (local), d=150.168.1.1 (Serial1/0), routed via FIB
*Mar 1 00:44:49.099: IP: s=150.12.1.2 (local), d=150.168.1.1 (Serial1/0), len 100, sending
*Mar 1 00:44:49.231: IP: tableid=0, s=150.168.1.1 (Serial1/0), d=150.12.1.2 (Serial1/0), routed via RIB
*Mar 1 00:44:49.235: IP: s=150.168.1.1 (Serial1/0), d=150.12.1.2 (Serial1/0), len 100, rcvd 3