You are on page 1of 3

CONFIGURACION DE RED EN WINDOWS

To enable DHCP or change other TCP/IP settings (Windows 8.1 or 7)

1. Do one of the following:


 In Windows 8.1, select the Start button, start typing View network
connections, and then select View network connections in the list.
 In Windows 7, open Network Connections by selecting
the Start button, and then selecting Control Panel. In the search
box, type adapter, and then, under Network and Sharing Center,
select View network connections.
2. Right-click the connection that you want to change, and then
select Properties. If you're prompted for an administrator password or
confirmation, type the password or provide confirmation.
3. Select the Networking tab. Under This connection uses the following
items, select either Internet Protocol Version 4 (TCP/IPv4) or Internet
Protocol Version 6 (TCP/IPv6), and then select Properties.
4. To specify IPv4 IP address settings, do one of the following:
 To get IP settings automatically using DHCP, select Obtain an IP
address automatically, and then select OK.
 To specify an IP address, select Use the following IP address, and
then, in the IP address, Subnet mask, and Default gateway boxes,
type the IP address settings.
5. To specify IPv6 IP address settings, do one of the following:
 To get IP settings automatically using DHCP, select Obtain an IPv6
address automatically, and then select OK.
 To specify an IP address, select Use the following IPv6 address,
and then, in the IPv6 address, Subnet prefix length, and Default
gateway boxes, type the IP address settings.
6. To specify DNS server address settings, do one of the following:
 To get a DNS server address automatically using DHCP,
select Obtain DNS server address automatically, and then
select OK.
 To specify a DNS server address, select Use the following DNS
server addresses, and then, in the Preferred DNS
server and Alternate DNS server boxes, type the addresses of the
primary and secondary DNS servers.
7. To change advanced DNS, WINS, and IP settings, select Advanced.

CONFIGURACION DE RED EN LINUX

Before you start, make sure you know the following things about your network
setup:
1. You ISP-assigned static IP address, if you have one.
2. The IP addresses of the DNS servers of your ISP.

Make sure that you have set up the IP address for the network card connected to
your internal network by issuing the following command as root:

ifconfig eth1 10.10.0.1 netmask 255.255.0.0

Setting up DHCP

Next we need to configure DHCP, a service that assigns IP addresses to hosts


based on a set of rules. DHCP simplifies network administration tremendously,
since you do not have to go to every client and enter the network settings
individually.

Log in as root, and edit the file /etc/dhcpd.conf to include the following:

subnet 10.10.0.0 netmask 255.255.255.0 {


# --- default gateway
option routers 10.10.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.10.0.255;

option domain-name-servers 10.10.0.1;


range 10.10.0.2 10.10.0.254;

default-lease-time 21600;
max-lease-time 43200;

}
Now start the DHCP server on the network card connected to the internal network
by issuing the command:

/usr/sbin/dhcpd eth1

To make sure DHCP starts up every time, add the line above to the end of
/etc/rc.d/rc.local.

You can test that DHCP is working by plugging a client into the network and setting
it to obtain an IP address automatically. If it gets an IP address in the range
10.10.0.2 to 10.10.0.254 as specified by the range directive, then it's working
correctly.

Setting up DNS

Next we'll set up DNS, which is responsible for translating numeric IP addresses
like 64.233.161.99 to more readable names like www.google.com. Setting up a
DNS server is generally considered a complex task, and rightly so, but for our
purposes, all you have to do is add a few lines to the /etc/named.conf file.

In your named.conf file, inside the opening section called options, insert:

forward first;
forwarders {
<Insert IP address of ISP's DNS server>;
};
MY ISP's DNS server is 202.78.167.25, so my configuration looks like this:

forward first;
forwarders {
202.78.167.25;
};
Start the DNS server by issuing the command service named start. To make sure it
starts every time, type the following command.

chkconfig --level 345 named on

You might also like