- You want to set up a basic network topology in Debian GNU/Linux using the command-line interface. Which command should you use to display the current network settings?
a) ifconfig
b) ping
c) traceroute
Answer: a) ifconfig
Explanation: The ifconfig command in Debian GNU/Linux allows you to display the current network configurations, such as IP addresses, network interfaces, and network masks.
- You are configuring a network topology in Debian GNU/Linux and want to assign a static IP address to a specific network interface. Which file should you modify?
a) /etc/hosts
b) /etc/network/interfaces
c) /etc/resolv.conf
Answer: b) /etc/network/interfaces
Explanation: The /etc/network/interfaces file in Debian GNU/Linux defines the network interfaces and their configurations, including static IP addresses.
- In Debian GNU/Linux, you can bring up or down a network interface using a command. Which command is used to bring an interface down?
a) ifup
b) ifdown
c) netstat
Answer: b) ifdown
Explanation: The ifdown command is used to bring down a network interface in Debian GNU/Linux, disabling its functionality.
- While setting up a network topology in Debian GNU/Linux, you need to assign a gateway IP address. Which file should you modify to configure the default gateway?
a) /etc/network/interfaces
b) /etc/resolv.conf
c) /etc/hosts
Answer: a) /etc/network/interfaces
Explanation: The /etc/network/interfaces file in Debian GNU/Linux allows you to configure the default gateway by specifying the "gateway" parameter for the appropriate network interface.
- You want to add a static route in Debian GNU/Linux to reach a specific network through a non-default gateway. Which command should you use?
a) route add
b) ifconfig
c) ping
Answer: a) route add
Explanation: To add a static route in Debian GNU/Linux, you can use the "route add" command followed by the destination network and gateway IP address.
- Which command should you use in Debian GNU/Linux to display the routing table, including the destination network, gateway, and network interface?
a) route
b) traceroute
c) ifconfig
Answer: a) route
Explanation: The route command in Debian GNU/Linux displays the current routing table, including the destination network, gateway, and associated network interfaces.
- You want to configure an IP address dynamically (DHCP) for a network interface in Debian GNU/Linux. Which file should you modify?
a) /etc/network/interfaces
b) /etc/hosts
c) /etc/resolv.conf
Answer: a) /etc/network/interfaces
Explanation: Although the /etc/network/interfaces file is primarily used for static IP configurations, you can define a network interface to use DHCP by specifying the "dhcp" method.
- You are configuring a server in Debian GNU/Linux that will provide network services to other devices. Which term describes this role?
a) Client
b) Router
c) Server
Answer: c) Server
Explanation: In the context of network topology, a server refers to a device that provides network-related services, such as web hosting, file sharing, or network printing.
- Suppose you want to create a local area network (LAN) in Debian GNU/Linux connecting multiple devices within your home. Which network topology would be most suitable?
a) Bus network
b) Star network
c) Mesh network
Answer: b) Star network
Explanation: A star network topology is well-suited for LAN environments, where each device connects directly to a central hub or switch.
- You need to connect multiple LANs in different geographical locations using Debian GNU/Linux. Which network topology should you choose for this scenario?
a) Ring network
b) Mesh network
c) Tree network
Answer: b) Mesh network
Explanation: A mesh network topology allows for direct communication between multiple LANs or devices, making it suitable for connecting geographically dispersed locations.
- Which network topology is characterized by a single central device interconnected with multiple devices in a sequential manner?
a) Ring network
b) Tree network
c) Bus network
Answer: b) Tree network
Explanation: A tree network topology consists of a central device (root) connected to multiple devices in a hierarchical manner, resembling a tree-like structure.
- Suppose you want to connect several devices in a LAN using a single communication path in Debian GNU/Linux. Which network topology would be the most appropriate choice?
a) Ring network
b) Star network
c) Bus network
Answer: c) Bus network
Explanation: In a bus network topology, multiple devices are connected using a single communication path, typically through a shared cable.
- You are configuring a network topology using Debian GNU/Linux, and you want to ensure that data is transmitted in a continuous circular fashion. Which network topology should you choose?
a) Star network
b) Ring network
c) Mesh network
Answer: b) Ring network
Explanation: A ring network topology ensures a continuous circular path for data transmission. Each device is connected to its two neighboring devices, forming a closed loop.
- Which network topology requires a token passing mechanism to allow devices to request access to the network in Debian GNU/Linux?
a) Bus network
b) Mesh network
c) Ring network
Answer: c) Ring network
Explanation: In a ring network topology, devices use a token passing mechanism to request access to the network, ensuring orderly communication.
- You want to create a network topology where devices are interconnected and provide multiple redundant paths for data transmission. Which network topology should you choose?
a) Star network
b) Mesh network
c) Bus network
Answer: b) Mesh network
Explanation: A mesh network topology provides multiple redundant paths between devices, ensuring fault tolerance and improved reliability in data transmission.
- While setting up a network topology in Debian GNU/Linux, you need to test the connectivity between two devices. Which command should you use?
a) ifup
b) ping
c) traceroute
Answer: b) ping
Explanation: The ping command in Debian GNU/Linux is used to test connectivity between two devices by sending ICMP Echo Request messages and receiving ICMP Echo Reply messages.
- You are troubleshooting network connectivity issues in Debian GNU/Linux and want to identify the path taken by packets between your device and a remote device. Which command should you use?
a) ifconfig
b) ping
c) traceroute
Answer: c) traceroute
Explanation: The traceroute command in Debian GNU/Linux allows you to identify and display the path taken by packets between your device and a remote device, showing each intermediate hop.
- Which command in Debian GNU/Linux can you use to display active network connections, including the source and destination IP addresses, ports, and connection status?
a) netstat
b) ping
c) ifconfig
Answer: a) netstat
Explanation: The netstat command in Debian GNU/Linux allows you to display active network connections, including the source and destination IP addresses, ports, and connection status.
- Suppose you want to test the connectivity to a specific port on a remote device in Debian GNU/Linux. Which command should you use?
a) ifconfig
b) ping
c) telnet
Answer: c) telnet
Explanation: The telnet command in Debian GNU/Linux can be used to test the connectivity to a specific port on a remote device by establishing a TCP connection to that port.
- You are configuring a network topology in Debian GNU/Linux and want to enable port forwarding between two network interfaces. Which file should you modify?
a) /etc/network/interfaces
b) /etc/hosts
c) /etc/sysctl.conf
Answer: c) /etc/sysctl.conf
Explanation: The /etc/sysctl.conf file in Debian GNU/Linux allows you to enable port forwarding by modifying the net.ipv4.ip_forward parameter to 1.
- In Debian GNU/Linux, which command should you use to update the routing table immediately with the new configurations without restarting the network service?
a) ifup
b) ifdown
c) ip route
Answer: c) ip route
Explanation: The ip route command in Debian GNU/Linux allows you to update the routing table immediately with new configurations without the need to restart the network service.
- Suppose you want to configure a network interface to use a specific DNS server in Debian GNU/Linux. Which file should you modify?
a) /etc/network/interfaces
b) /etc/resolv.conf
c) /etc/hosts
Answer: b) /etc/resolv.conf
Explanation: The /etc/resolv.conf file in Debian GNU/Linux allows you to configure DNS (Domain Name System) settings, including specifying the DNS servers to be used for domain name resolution.