Search Windows and Linux Networking

Showing posts with label Networking. Show all posts
Showing posts with label Networking. Show all posts

Thursday, October 24, 2013

How to disabled IPv6 on Windows 2008 Server from registry

Step to permanently disabled IPv6 from Windows 2008 Server or windows 7.


If you do not required IPv6 on your windows 2008 Server system or windows 7 Desktop you can disabled it from registry.



To disabled IPv6 support go to:-

login in to the server/Desktop with user member of Administrator group and follow the step

 Start> run > and type regedit. Expand the path

Coputer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TCPIV6\Parameters

Now Right Click the folder Parameters and Select New > DWORD(32-Bit) Value > Name the key as DisabledComponents
Now open the DisabledCompontents key and type ffffffff and click ok.<8 time " f " with lower case >

Final setting look like this:-



Now close the all application and restart your server/Desktop.


After reboot check IPv6 disappear from command result ipconfig /all

Wednesday, February 8, 2012

How to Install and Configure Proftpd Server on CentOS Step by Step


Installing Proftpd Server on CentOS (Linux)
 
Proftpd is the Highly configurable GPL-licensed FTP server software .it is an enhanced, secure and highly configurable FTP server. Its configuration syntax is very similar to apache web server. You can know more information from http://www.proftpd.org .

Download proftpd rpm package from http://pkgs.org/ and install with rpm –ivh <Package name>.rpm

OR

If you want to install using yum then add repository  and then install proftpd server

#  cd /etc/yum.repos.d/
# wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
# rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
# Vi /etc/yum.repos.d/ kbsingh-CentOS-Extras.repo
Set both enable=1
# yum clean all
# yum update all

Now install Proftpd

# yum install proftpd

Now your ftp server is ready to functional  with default configuration but you should check following values for your Basic ftp server in /etc/proftpd.conf configuration file

Server Name, Server Type and Port

Now start proftpd and set on for startup

# service proftpd start
# chkconfig proftpd on

Check running process for proftpd
# ps -ef | grep proftpd
nobody    4463     1  0 23:35 ?        00:00:00 proftpd: (accepting connections)
root      4470  4202  0 23:36 pts/2    00:00:00 grep proftpd

OR you can verify whether your FTP server is running using:

# netstat -an | grep -F tcp | grep -F LISTEN | grep -F 21
tcp        0      0 :::21                       :::*                        LISTEN


Now when you try to connect ftp server it will be ask you for your name and password type valid user name and password as per /etc/passwd file . it will take you home directory of that user. 

Anonymous FTP Server :-

If you wanted Anonymous access uncomment Anonymous directive. Or you can add following in /etc/proftpd.conf file
# vi /etc/proftpd.conf

<Anonymous /var/ftp/pub>
AnonRequirePassword       off
User                                   ftp
Group                                 ftp
RequireValidShell                off
<Directory *>
<Limit WRITE>
          DenyAll
</Limit>
</Directory>
</Anonymous>


 Note: - user and group must be valid

verify configuration :-

# proftpd –t6

If it not given any error then reload configuration

# service proftpd reload

Now if you try to access FTP server it will not ask you any password and show you contain of /var/ftp/pub directory.
If you wanted to allow user to upload data then in Limit WRITE directive change it AllowAll.

Thursday, November 3, 2011

Configure Network With OSPF Multiple Area in Cisco Routers

 Configure Network With OSPF Multiple Area in Cisco Router

Last time we was setup single Area network with OSPF today we will setup our network Multiple Area with OSPF. see the following diagram.







Firstly we configure host name and interfaces of all Router and then configure routing 

Core 1

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Core1
Core1(config)#

Core1(config)#interface FastEthernet 0/0
Core1(config-if)#ip address 172.9.0.1 255.255.0.0
Core1(config-if)#no shutdown
Core1(config-if)#exit

Core1(config)#interface serial 0/0/0
Core1(config-if)#ip address 192.168.8.1 255.255.255.0
Core1(config-if)#no shutdown
Core1(config-if)#exit

Core1(config)#interface serial 0/0/1
Core1(config-if)#ip address 172.14.0.254 255.255.0.0
Core1(config-if)#clock rate 64000
Core1(config-if)#no shutdown
Core1(config-if)#exit

Core1(config)#interface serial 0/1/0
Core1(config-if)#ip address 192.168.7.1 255.255.255.0
Core1(config-if)#clock rate 64000
Core1(config-if)#no shutdown
Core1(config-if)#exit

Core 2

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Core2
Core2(config)#interface Serial 0/0/0
Core2(config-if)#ip address 192.168.8.2 255.255.255.0
Core2(config-if)#clock rate 64000
Core2(config-if)#no shutdown
Core2(config-if)#exit

Core2(config)#interface serial 0/1/0
Core2(config-if)#ip address 192.3.3.1 255.255.255.0
Core2(config-if)#clock rate 64000
Core2(config-if)#no shutdown
Core2(config-if)#exit

Core2(config)#interface serial 0/1/1
Core2(config-if)#ip address 192.168.4.154 255.255.255.0
Core2(config-if)#clock rate 64000
Core2(config-if)#no shutdown
Core2(config-if)#exit

Core2(config)#interface serial 0/0/1
Core2(config-if)#ip address 192.168.10.1 255.255.255.0
Core2(config-if)#clock rate 64000
Core2(config-if)#no shutdown
Core2(config-if)#exit

Core 3

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Core3

Core3(config)#interface serial 0/1/0
Core3(config-if)#ip address 172.14.0.1 255.255.0.0
Core3(config-if)#no shutdown
Core3(config-if)#exit

Core3(config)#interface serial 0/0/0
Core3(config-if)#ip address 192.168.10.2 255.255.255.0
Core3(config-if)#no shutdown
Core3(config-if)#exit

Core3(config)#interface serial 0/0/1
Core3(config-if)#ip address 192.168.9.1 255.255.255.0
Core3(config-if)#clock rate 64000
Core3(config-if)#no shutdown
Core3(config-if)#exit

Core3(config)#interface serial 0/1/1
Core3(config-if)#ip address 192.168.2.1 255.255.255.0
Core3(config-if)#clock rate 64000
Core3(config-if)#no shutdown
Core3(config-if)#exit

Core 4

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Core4

Core4(config)#interface Serial 0/0/0
Core4(config-if)#ip address 192.168.7.254 255.255.255.0
Core4(config-if)#no shutdown
Core4(config-if)#exit
Core4(config)#interface serial 0/0/1
Core4(config-if)#ip address 192.168.9.254 255.255.255.0
Core4(config-if)#no shutdown
Core4(config-if)#exit
Core4(config)#

Core4(config)#interface serial 0/1/0
Core4(config-if)#ip address 192.168.11.1 255.255.255.0
Core4(config-if)#clock rate 64000
Core4(config-if)#no shutdown
Core4(config-if)#exit

Core4(config)#interface serial 0/1/1
Core4(config-if)#ip address 192.168.12.1 255.255.255.0
Core4(config-if)#clock rate 64000
Core4(config-if)#no shutdown
Core4(config-if)#exit

Chicago

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Chicago
Chicago(config)#interface serial 0/0/0
Chicago(config-if)#ip address 192.3.3.2 255.255.255.0
Chicago(config-if)#no shutdown
Chicago(config-if)#exit

Chicago(config)#interface FastEthernet 0/0
Chicago(config-if)#ip address 192.1.1.1 255.255.255.0
Chicago(config-if)#no shutdown
Chicago(config-if)#exit

France

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname France
France(config)#interface Serial 0/0/0
France(config-if)#ip address 192.168.4.2 255.255.255.0
France(config-if)#no shutdown
France(config-if)#exit

France(config)#interface FastEthernet 0/0
France(config-if)#ip address 192.2.2.1 255.255.255.0
France(config-if)#no shutdown
France(config-if)#exit

Japan

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Japan
Japan(config)#interface serial 0/0/0
Japan(config-if)#ip address 192.168.2.254 255.255.255.0
Japan(config-if)#no shutdown
Japan(config-if)#exit

Japan(config)#interface fastEthernet 0/0
Japan(config-if)#ip address 172.10.0.1 255.255.0.0
Japan(config-if)#no shutdown
Japan(config-if)#exit

Pune

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Pune
Pune(config)#interface serial 0/0/0
Pune(config-if)#ip address 192.168.11.254 255.255.255.0
Pune(config-if)#no shutdown
Pune(config-if)#exit

Pune(config)#interface fastEthernet 0/0
Pune(config-if)#ip address 172.16.0.1 255.255.0.0
Pune(config-if)#no shutdown
Pune(config-if)#exit

Mumbai

Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname Mumbai
Mumbai(config-if)#ip address 192.168.12.254 255.255.255.0
Mumbai(config-if)#no shutdown
Mumbai(config-if)#exit

Mumbai(config)#interface fastEthernet 0/0
Mumbai(config-if)#ip address 172.15.0.254 255.255.0.0
Mumbai(config-if)#no shutdown
Mumbai(config-if)#exit

Next Step is to configure network Route. :-
we will configure nework route with OSPF with different area and with default route the network that are not connected to area 0. and save the configuration.



Core1

Core1(config)#router ospf 1
Core1(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        172.9.0.1       YES manual up                    up

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.8.1     YES manual up                    up

Serial0/0/1            172.14.0.254    YES manual up                    up

Serial0/1/0            192.168.7.1     YES manual up                    up

Serial0/1/1            unassigned      YES unset  administratively down down

Vlan1                  unassigned      YES unset  administratively down down
Core1(config-router)#
Core1(config-router)#network 172.9.0.0 0.0.255.255 area 0
Core1(config-router)#network 192.168.8.0 0.0.0.255 area 0
Core1(config-router)#network 172.14.0.0 0.0.255.255 area 0
Core1(config-router)#network 192.168.7.0 0.0.0.255 area 0
Core1(config-router)#exit
Core1(config)#exit
Save configuration
Core1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Core1#


Core2
Core2(config)#router ospf 1
Core2(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        unassigned      YES unset  administratively down down

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.8.2     YES manual up                    up

Serial0/0/1            192.168.10.1    YES manual up                    up

Serial0/1/0            192.3.3.1       YES manual up                    up

Serial0/1/1            192.168.4.154   YES manual up                    up

Vlan1                  unassigned      YES unset  administratively down down
Core2(config-router)#network 192.168.8.0 0.0.0.255 area 0
Core2(config-router)#network 192.168.10.0 0.0.0.255 area 0
Core2(config-router)#network 192.3.3.0 0.0.0.255 area 2
Core2(config-router)#network 192.168.4.0 0.0.0.255 area 2
Core2(config-router)#exit
Core2(config)#exit
Save Configuration 
Core2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Core2#

Core3
Core3(config)#router ospf 1
Core3(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        unassigned      YES unset  administratively down down

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.10.2    YES manual up                    up

Serial0/0/1            192.168.9.1     YES manual up                    up

Serial0/1/0            172.14.0.1      YES manual up                    up

Serial0/1/1            192.168.2.1     YES manual up                    up

Vlan1                  unassigned      YES unset  administratively down down
Core3(config-router)#
Core3(config-router)#network 192.168.10.0 0.0.0.255 area 0
Core3(config-router)#network 192.168.9.0 0.0.0.255 area 0
Core3(config-router)#network 172.14.0.0 0.0.255.255 area 0
Core3(config-router)#network 192.168.2.0 0.0.0.255 area 3
Core3(config-router)#exit
Core3(config)#exit
Save Configuration
Core3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Core3#


Core4
Core4(config)#router ospf 1
Core4(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        unassigned      YES unset  administratively down down

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.7.254   YES manual up                    up

Serial0/0/1            192.168.9.254   YES manual up                    up

Serial0/1/0            192.168.11.1    YES manual up                    up

Serial0/1/1            192.168.12.1    YES manual up                    up

Vlan1                  unassigned      YES unset  administratively down down
Core4(config-router)#
Core4(config-router)#network 192.168.7.0 0.0.0.255 area 0
Core4(config-router)#network 192.168.9.0 0.0.0.255 area 0
Core4(config-router)#network 192.168.11.0 0.0.0.255 area 1
Core4(config-router)#network 192.168.12.0 0.0.0.255 area 1
Core4(config-router)#exit
Core4(config)#exit
Save Configuration
Core4#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Core4#

Chicago
Note:- Chicago network interface is not directly connected to Area 0 so to all communicant we also configure default route along with OSPF

Chicago(config)#router ospf 1
Chicago(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        192.1.1.1       YES manual up                    up

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.3.3.2       YES manual up                    up

Serial0/0/1            unassigned      YES unset  administratively down down

Vlan1                  unassigned      YES unset  administratively down down
Chicago(config-router)#
Chicago(config-router)#network 192.1.1.0 0.0.0.255 area 2
Chicago(config-router)#network 192.3.3.0 0.0.0.255 area 2
Chicago(config-router)#exit
Chicago(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
Chicago(config)#exit
Save Configuration
Chicago#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Chicago#

France
Note:- This network interface are also not directly connected to Area 0 so to all communicant we also configure default route along with OSPF
France(config)#router ospf 1
France(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        192.2.2.1       YES manual up                    up

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.4.2     YES manual up                    up

Serial0/0/1            unassigned      YES unset  administratively down down

Vlan1                  unassigned      YES unset  administratively down down
France(config-router)#
France(config-router)#network 192.2.2.0 0.0.0.255 area 2
France(config-router)#network 192.168.4.0 0.0.0.255 area 2
France(config-router)#exit
France(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
France(config)#exit
Save Configuration 

France#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
France#

Japan
Note:- This network is also not directly connected to Area 0 so to all communicant we also configure default route along with OSPF 
Japan(config)#route ospf 1
Japan(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        172.10.0.1      YES manual up                    up

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.2.254   YES manual up                    up

Serial0/0/1            unassigned      YES unset  administratively down down

Vlan1                  unassigned      YES unset  administratively down down
Japan(config-router)#
Japan(config-router)#network 172.10.0.0 0.0.255.255 area 3
Japan(config-router)#network 192.168.2.0 0.0.0.255 area 3
Japan(config-router)#exit
Japan(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
Japan(config)#
Japan(config)#exit
Save Configuration
Japan#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Japan#

Pune
Note:- This network is also not directly connected to Area 0 so to all communicant we also configure default route along with OSPF  
Pune(config)#router ospf 1
Pune(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        172.16.0.1      YES manual up                    up

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.11.254  YES manual up                    up

Serial0/0/1            unassigned      YES unset  administratively down down

Vlan1                  unassigned      YES unset  administratively down down
Pune(config-router)#
Pune(config-router)#network 172.16.0.0 0.0.255.255 area 1
Pune(config-router)#network 192.168.11.0 0.0.0.255 area 1
Pune(config-router)#exit
Pune(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/0
Pune(config)#exit
Save Configuration
Pune#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Pune#

Mumbai
Mumbai(config)#router ospf 1
Mumbai(config-router)#do show ip int br
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        172.15.0.254    YES manual up                    up

FastEthernet0/1        unassigned      YES unset  administratively down down

Serial0/0/0            192.168.12.254  YES manual up                    up

Serial0/0/1            unassigned      YES unset  administratively down down

Vlan1                  unassigned      YES unset  administratively down down
Mumbai(config-router)#
Mumbai(config-router)#network 172.15.0.0 0.0.255.255 area 1
Mumbai(config-router)#network 192.168.12.0 0.0.0.255 area 1
Mumbai(config-router)#exit
Mumbai(config)#exit
Save Configuration
Mumbai#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Mumbai#

It Done on Router site now go to PC and set ip address in same network and set default gateway as ip address of Router.
Next time we will see how to create VLAN in Cisco Devices.