[Solved]Box Login Tc Tc User Id Password Set Tc Box ~ Tc Box ~ Su Change Su Super User Get Adminis Q37032861
box login:tc # tc is theuser id, the password is not set
tc@box:~$
tc@box:~$ su #change to su =super user to get administrator rights on the router
Password: # the password is root (your typing it won’t show)
root@box:~#
root@box:~#
Can you ping the outside world?
root@box:~# pinggoogle.com
PING google.com(172.217.3.206): 56 data bytes
64 bytes from172.217.3.206: seq=0 ttl=53 time=5.794 ms
64 bytes from172.217.3.206: seq=1 ttl=53 time=10.308 ms
Seems to work!
Open a console for Pc-1 (no login required)
Can you ping the outside from PC-1?
PC-1> pinggoogle.com
host (0.0.0.0) notreachable
No surprise. I have not configured a Domain Name Server
Cannot resolvegoogle.com
PC-1> ping8.8.8.8
host (8.8.8.8) notreachable
However, I also cannot reach a straight IP address. Why?
Answer: I have not configured anyof the portsyet (PC-1 eth0 and LinuxRouter-1 eth1)
Let’s configure the port PC-1 eth0 (I chose 10.0.0.25/24 you canof course pick any private IP address)
PC-1> ip 10.0.0.25/2410.0.0.1
This notation is definitely NOTLinux syntax. It is just forthese simple PC simulators.
However, I still am not able to ping the outside.
PC-1> ping8.8.8.8
host (10.0.0.1) notreachable
I can’t even get to my own Gateway!!!
PC-1> ping10.0.0.1
host (10.0.0.1) notreachable
What is still missing is the configuration of the Routerinterface eth1 (that PC-1 is connected to).
Open the console for the router. Now you are truly in Linuxterritory.
root@box:~# ifconfig eth110.0.0.1 netmask 255.255.255.0 up
This is standard Linux syntax for configuring an interface(eth1=interface name, up=start the interface (the other option is“down”, which is just like un-plugging the cable).
PC-1 can now ping 10.0.0.1. However, PC-1 still is not able togo outside. Why?
This is now a much more complex issue.
On one side the router is connected to the 10.0.0.0/24 network.On the other side eth0 is 198.168.122.0/24. Obviously these are twovery different networks.
How does one establish a connection across two differentnetworks?
Answer: NAT (Network Address Translation). We need to configurethe router to do IP address translation.
root@box:~# echo 1 >/proc/sys/net/ipv4/ip_forward
root@box:~# iptables -tnat -A POSTROUTING -o eth0 -j MASQUERADE
root@box:~# iptables -AFORWARD -i eth1 -j ACCEPT
Perform a network address translation and send it outon eth0( -oeth0). Of course, you could have picked any port to connect to thecloud. There is nothing special about eth0.
The 3rdstatement is basically a firewall statement toaccept anything coming inon port eth1(-i eth1).
Back to the PC-1 console.
PC-1> ping8.8.8.8
84 bytes from 8.8.8.8icmp_seq=1 ttl=117 time=10.551 ms
84 bytes from 8.8.8.8icmp_seq=2 ttl=117 time=6.362 ms
84 bytes from 8.8.8.8icmp_seq=3 ttl=117 time=6.135 ms
But symbolic name resolution still does not work,
PC-1> pingamazon.com
Cannot resolve amazon.com
This is easy to fix. I just need to tell PC-1 the location of aDNS server.
PC-1> ip dns8.8.8.8
8.8.8.8 is just a public domain name server. It easier to justuse a public domain name server than to configure my own.
Now PC-1 is in business!!!
PC-1> pingamazon.com
amazon.com resolved to176.32.103.205
84 bytes from176.32.103.205 icmp_seq=1 ttl=225 time=76.543 ms
84 bytes from176.32.103.205 icmp_seq=2 ttl=225 time=77.189 ms
84 bytes from176.32.103.205 icmp_seq=3 ttl=225 time=75.914 ms

NAT-1 LinuxRouter-1 na e0 192.168.122.137 10.0.0.1/24 el e2 0.0.2.1/24 eoPC-2 PCS PC-1 e0 10.0.0.25/24 PCS 10.0.2.222/24 1)What else needs to be done (if anything) to enable PC-1> ping 10.0.2.222? Show transcribed image text NAT-1 LinuxRouter-1 na e0 192.168.122.137 10.0.0.1/24 el e2 0.0.2.1/24 eoPC-2 PCS PC-1 e0 10.0.0.25/24 PCS 10.0.2.222/24 1)What else needs to be done (if anything) to enable PC-1> ping 10.0.2.222?
Expert Answer
Answer to box login: tc # tc is the user id, the password is not set tc@box:~$ tc@box:~$ su #change to su = super user to get admi… . . .
OR

