wiki:Networking

CSLab Networking

DHCP Servers:

  • danaos (subnet 147.102.3)
  • scirouter (subnet 147.102.4)

Useful commands:

  • # view /etc/dhcpd.conf: see and set statically assigned IPs (dhcp runs only on danaos, not on scirouter)
  • # /usr/local/share/munin/dhcpstatus/dhcpstatus_0.60/scripts/dhcpstatus: Returns the DHCP status (@ danaos), see the number of available IPs
  • # nmap -sP 147.102.4.190/26: See who is connected to the subnet
  • /etc/init.d/dhcp3-server status: To see the status of the dhcp server ("restart" to restart it)

Allocate a static IP

  • At /etc/network/interface add (under correct interface):
	IP	147.102.4.149
	Broadcast 147.102.4.191
	Gateway	147.102.4.190
	Netmask	255.255.255.192

Add the MAC address and IP at dhcpd.conf as above

Add the domain name to DNS server

# vim /etc/bind/cslab.ece.ntua.gr.zone: Find the ip and change the name on top Add entry and update serial on top of file

Reverse lookup

  • # vim 4.102.147.in-addr.arpa.zone Find the ip and change the name on top
  • Add entry and update serial on top of file
  • # rndc reload
  • To test: # nslookup 147.102.4.149
  • If something is added, e.g. URL: # service bind9 restart
Last modified 11 months ago Last modified on 01/10/24 13:53:02
Note: See TracWiki for help on using the wiki.