Import two virtual machines (Ubuntu) and name it as Server and
Client and perform/ type commands for
the following.
1. Assign IP address 192.168.4.2 (subnet mask 255.255.255.0) to
Server machine.
2. Assign IP address 192.168.4.5 (subnet mask 255.255.255.0) to
Client machine.
3. Change the network adapter settings of Server and Client to
bridged adapter.
4. Perform the command to find/display the IP addresses of Server
and Client.
5. Perform the command to test the connectivity between Server and
Client.
6. Perform the command to display routing table information from
Server.
7. Perform the command to access Server remotely from Client.
8. Perform the command to trace the route from Client to
Server.
9. Perform the command to disable network adaptor of client
machine.
10. Perform the command to enable network adaptor of client
machine.
to assign ip address
ifconfig <interface_name> <ip_address> netmask <netmask_address>
$ ifconfig enp0s3 192.168.4.2 netmask 255.255.255.0
$ ifconfig enp0s3 192.168.4.5 netmask 255.255.255.0
to change network adapter settings in virtualbox it should be done manullay under network tab
to check ip address " $ ip addr show "
command to test connectivity from server to client
ping -c 1 hostname
we can get hostname by using command : hostname
to display routing table information
$ netstat -r
to connect to server we can use ssh
$ ssh 192.168.4.2
trace host from client to server
$ tracert 192.168.4.2
ifconfig is used to enbale and disable network adapter
Get Answers For Free
Most questions answered within 1 hours.