Topology
IP internet address 172.16.40.1
Configuring
the IP Address on the router Gateway
[admin@Gateway] > ip address add address=172.16.40.125/25 interface=ether1
[admin@Gateway] > ip address add address=192.168.56.38/24 interface=ether2
[admin@Gateway] > ip address add address=192.168.59.20/24 interface=ether3
[admin@Gateway] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 172.16.40.125/25 172.16.40.0 ether1
1 192.168.56.38/24 192.168.56.0 ether2
2 192.168.59.20/24 192.168.59.0 ether3
[admin@Gateway] > ip address add address=192.168.56.38/24 interface=ether2
[admin@Gateway] > ip address add address=192.168.59.20/24 interface=ether3
[admin@Gateway] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 172.16.40.125/25 172.16.40.0 ether1
1 192.168.56.38/24 192.168.56.0 ether2
2 192.168.59.20/24 192.168.59.0 ether3
Configuring the IP Address on the router R1
[admin@R1] > ip address add
address=192.168.56.39/24 interface=ether1
[admin@R1]
> ip address add
address=192.168.60.2/24 interface=ether2
[admin@R1] > ip address print
Flags: X
- disabled, I - invalid, D - dynamic
#
ADDRESS NETWORK
INTERFACE
0
192.168.56.39/24 192.168.56.0 ether1 1 192.168.60.2/24 192.168.60.0 ether2
Configuring the IP Address on the router R2
[admin@R2] > ip address add
address=192.168.59.40/24 interface=ether1
[admin@R2]
> ip address add
address=192.168.58.56/24 interface=ether3
[admin@R2] > ip address print
Flags: X
- disabled, I - invalid, D - dynamic
#
ADDRESS NETWORK
INTERFACE
0
192.168.59.40/24 192.168.59.0 ether1 1 192.168.58.56/24 192.168.58.0 ether3
Configuring Network address translation (NAT) on the router Gateway
[admin@Gateway] > ip
firewall nat add chain=srcnat out-interface=ether1 action=masquerade
Flags: X - disabled, I - invalid, D - dynamic
Configuring DNS & route on the router Gateway
[admin@Gateway] > ip
dns set servers=172.16.40.1,8.8.8.8 allow-remote-requests=yes
172.16.40.1 is the IP
address of the internet
[admin@Gateway] > ip dns print
servers: 172.16.40.1,8.8.8.8
dynamic-servers:
allow-remote-requests: yes
max-udp-packet-size: 4096
query-server-timeout: 2s
query-total-timeout: 10s
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used:
9KiB
[admin@Gateway] > ip
route add dst-address=0.0.0.0/0 gateway=172.16.40.1
RIPv1 Configuration on the router Gateway
[admin@R1] > routing rip
interface add interface=all send=v1 receive=v1
[admin@Gateway] > routing rip interface print
Flags: I - invalid, X - disabled, P - passive
# INTERFACE SEND RECEIVE AUTHENTICATION AUTHENTICATION-KEY
0 ether2 v1 v1 none
1 ether3 v1 v1 none
[admin@R1] > routing rip network add
network=192.168.58.0/24
[admin@R1] > routing rip network add network=192.168.59.0/24
[admin@Gateway] > routing rip network print
Flags: X - disabled
# NETWORK
0 192.168.56.0/24
1 192.168.59.0/24
RIPv1 Configuration on the router R1
[admin@R1] > routing rip
interface add interface=all send=v1 receive=v1
[admin@R1] > routing rip interface print
Flags: I - invalid, X - disabled, P - passive
# INTERFACE SEND RECEIVE AUTHENTICATION AUTHENTICATION-KEY
0 all v1 v1 none
[admin@R1] > routing rip network add
network=192.168.58.0/24
[admin@R1] > routing rip network add
network=192.168.59.0/24
[admin@R1] > routing rip network print
Flags: X - disabled
# NETWORK
0 192.168.56.0/24
1 192.168.60.0/24
RIPv1 Configuration on the router R2
[admin@R2] > routing rip
interface add interface=all send=v1 receive=v1
[admin@R2] > routing rip interface print
Flags: I - invalid, X - disabled, P - passive
# INTERFACE SEND RECEIVE AUTHENTICATION AUTHENTICATION-KEY
0 all v1 v1 none
[admin@R2] > routing rip network add
network=192.168.56.0/24
[admin@R2] > routing rip network add network=192.168.60.0/24
[admin@R2] > routing rip network print
Flags: X - disabled
# NETWORK
0 192.168.58.0/24
1 192.168.59.0/24
Print the results of Routing Configuration on each router RIPv1
[admin@Gateway] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY
0 A S 0.0.0.0/0 172.16.40.1
1 ADC 172.16.40.0/25 172.16.40.125 ether1
2 ADC 192.168.56.0/24 192.168.56.38 ether2
3 ADr 192.168.58.0/24 192.168.59.40
4 ADC 192.168.59.0/24 192.168.59.20 ether3
5 ADr 192.168.60.0/24 192.168.56.39
[admin@R1] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTAN
0 ADr 0.0.0.0/0 192.168.56.38 1
1 ADC 192.168.56.0/24 192.168.56.39 ether1
2 ADr 192.168.58.0/24 192.168.56.38 1
3 ADr 192.168.59.0/24 192.168.56.38 1
4 ADC 192.168.60.0/24 192.168.60.2 ether2
[admin@R2] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADr 0.0.0.0/0 192.168.59.20 120
1 ADr 192.168.56.0/24 192.168.59.20 120
2 ADC 192.168.58.0/24 192.168.58.56 ether3 0
3 ADC 192.168.59.0/24 192.168.59.40 ether1 0
4 ADr 192.168.60.0/24 192.168.59.20 120
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY
0 A S 0.0.0.0/0 172.16.40.1
1 ADC 172.16.40.0/25 172.16.40.125 ether1
2 ADC 192.168.56.0/24 192.168.56.38 ether2
3 ADr 192.168.58.0/24 192.168.59.40
4 ADC 192.168.59.0/24 192.168.59.20 ether3
5 ADr 192.168.60.0/24 192.168.56.39
[admin@R1] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTAN
0 ADr 0.0.0.0/0 192.168.56.38 1
1 ADC 192.168.56.0/24 192.168.56.39 ether1
2 ADr 192.168.58.0/24 192.168.56.38 1
3 ADr 192.168.59.0/24 192.168.56.38 1
4 ADC 192.168.60.0/24 192.168.60.2 ether2
[admin@R2] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADr 0.0.0.0/0 192.168.59.20 120
1 ADr 192.168.56.0/24 192.168.59.20 120
2 ADC 192.168.58.0/24 192.168.58.56 ether3 0
3 ADC 192.168.59.0/24 192.168.59.40 ether1 0
4 ADr 192.168.60.0/24 192.168.59.20 120
DNS every PC using the internet IP address: 172.16.40.1
Test connection with ping from each PC to all IP addresses, the IP address of your Pc or router and test the connection to the internet with ping google.com



0 komentar:
Posting Komentar