How to setup a LAN – Course 02220 Alessio Di Mauro

Transcription

How to setup a LAN – Course 02220 Alessio Di Mauro
How to setup a LAN – Course 02220
Alessio Di Mauro {adma@dtu.dk}
Xenofon Fafoutis {xefa@dtu.dk}
DTU Compute
Setting up a LAN
In order to set up a LAN you need several steps:
• Connect all the machine to the same physical medium (switch, hub, cable, wifi, etc.)
2
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN
In order to set up a LAN you need several steps:
• Connect all the machine to the same physical medium (switch, hub, cable, wifi, etc.)
• Specify appropriate IP address and netmask on every machine
• Select an IP address from the reserved private IPv4 address space (e.g.
192.168.x.x, 10.x.x.x)
2
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN
In order to set up a LAN you need several steps:
• Connect all the machine to the same physical medium (switch, hub, cable, wifi, etc.)
• Specify appropriate IP address and netmask on every machine
• Select an IP address from the reserved private IPv4 address space (e.g.
192.168.x.x, 10.x.x.x)
• Make sure that all the addresses belong to the same Subnet
2
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN
In order to set up a LAN you need several steps:
• Connect all the machine to the same physical medium (switch, hub, cable, wifi, etc.)
• Specify appropriate IP address and netmask on every machine
• Select an IP address from the reserved private IPv4 address space (e.g.
192.168.x.x, 10.x.x.x)
• Make sure that all the addresses belong to the same Subnet
• Example: Network IP 192.168.0.0, Netmask 255.255.255.0, Host IP range
192.168.0.1 − 192.168.0.254
2
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN
In order to set up a LAN you need several steps:
• Connect all the machine to the same physical medium (switch, hub, cable, wifi, etc.)
• Specify appropriate IP address and netmask on every machine
• Select an IP address from the reserved private IPv4 address space (e.g.
192.168.x.x, 10.x.x.x)
• Make sure that all the addresses belong to the same Subnet
• Example: Network IP 192.168.0.0, Netmask 255.255.255.0, Host IP range
192.168.0.1 − 192.168.0.254
• Use ping to test the connection (ping 192.168.0.15)
Depending on your OS the steps above will vary a lot
2
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Linux
• open a terminal as root
3
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Linux
• open a terminal as root
• type “ifconfig” and identify and note down the Ethernet adapter name (e.g. “eth0”)
3
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Linux
• open a terminal as root
• type “ifconfig” and identify and note down the Ethernet adapter name (e.g. “eth0”)
• type “ifconfig eth0 192.168.0.1 netmask 255.255.255.0”
3
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Linux
• open a terminal as root
• type “ifconfig” and identify and note down the Ethernet adapter name (e.g. “eth0”)
• type “ifconfig eth0 192.168.0.1 netmask 255.255.255.0”
• type “ping 192.168.0.2”
3
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Windows
• open Windows prompt as Administrator
4
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Windows
• open Windows prompt as Administrator
• type “ipconfig” and identify and note down the Ethernet adapter name (e.g.
“Local Area Connection”)
4
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Windows
• open Windows prompt as Administrator
• type “ipconfig” and identify and note down the Ethernet adapter name (e.g.
“Local Area Connection”)
• type “netsh interface ip set address "Local Area Connection" static
192.168.0.2 255.255.255.0 none”
4
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Windows
• open Windows prompt as Administrator
• type “ipconfig” and identify and note down the Ethernet adapter name (e.g.
“Local Area Connection”)
• type “netsh interface ip set address "Local Area Connection" static
192.168.0.2 255.255.255.0 none”
• type “ping 192.168.0.1”
4
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013
Setting up a LAN – Windows
• open Windows prompt as Administrator
• type “ipconfig” and identify and note down the Ethernet adapter name (e.g.
“Local Area Connection”)
• type “netsh interface ip set address "Local Area Connection" static
192.168.0.2 255.255.255.0 none”
• type “ping 192.168.0.1”
? type “netsh interface ip set address "Local Area Connection" dhcp” to
restore the previous configuration
N.B. The Windows firewall will most likely be active and
preventing you from establishing a connection. Disable it
temporarily or allow exceptions.
4
DTU Informatics, Technical University of Denmark
How to setup a LAN – Course 02220
13.2.2013