How to configure VLAN in Cisco Switch

Hello guys today we will learn how to configure VLAN(Virtual Area network) in Cisco Switch. Before that we will learn what is VLAN. we can create block in same network through vlan. some times we have to need network block in same network,  imagine that we want to create two networks block in computer lab and our condition  is both block cant’communicate each-other in this condition we will configure VLAN in Switch  you just follow simple Steps

before we will take two switch and eight Computer and provide ip address like this tables

PC 0 PC 1 PC 2 PC 3 PC 4 PC 5 PC 6 PC 7
1.0.0.1 1.0.0.2 1.0.0.3 1.0.0.4 1.0.0.5 1.0.0.6 1.0.0.7 1.0.0.8

Step 2 now will go to switch 1 CLI mod and configure vlan like this

vlan

Switch>en

Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name ccna
Switch(config-vlan)#exit
Switch(config)#int Fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name linux
Switch(config-vlan)#exit
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#int Fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#

Step 2 we can look our vlan through show vlan commands 

screenshot-83

Step 3 now will go to switchb 2  and Configuration vlan same like this

Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name ccna
Switch(config-vlan)#exit
Switch(config)#int fa0/1
Switch(config-if)#switchport mod access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport mod access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name linux
Switch(config-vlan)#int fa0/3
Switch(config-if)#switchport mod access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#int fa0/4
Switch(config-if)#switchport mod access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exitvlan

Step 3 now we r connect both switch and connect VALN 10 and VLAN 20

vlan

Go to Switch 1 and configure trunk on port fa0/5
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/5
Switch(config-if)#switchport trunk allowed vlan all
Switch(config-if)#switchport mode trunk
Switch(config-if)#

Now go to switch 2 and configure trunk on port fa0/5

Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/5
Switch(config-if)#switchport trunk allowed vlan all
Switch(config-if)#switchport mode trunk

now Cisco switch on complete VLAN configuretion

how to remove VLAN

if we want to remove VLAN then go to switch CLI mode and type just no vlan

Switch(config-if)#no vlan 10
Switch(config)#no vlan 20

if you have any problem in this process then comments here i will solve your problem you can also download vlan lab through this link 

Thank you

by Vishnu Sharma

Advertisements

how to convert heard disk type GPT to MBR

hello guys today we will learn how to convert our system heard disk style GPT(GUID partition table) to MBR(Master boot record) its a very Simple process. we have two way to change disk style during windows installation and on screen windows system .If you install new operating system  and your system is show partition Error like this then you follow just simple stepmdr

Step1 go to windows installation Screen and type Shift+F10 then your system in open Command Prompt. then we will type just Disk part in Command Prompt 

mbr

Step2 then we type List Disk

Step3 now Select our disk which you want change style Select Disk

Step4 then type clean (clean Commands through your disk will be clean /Delete if you not want Clean disk then not use )

Step 5 now type Convert mbr  then your disk will be convert gpt to mbr style 

gpt

if you have any problem in this process so Comment Here i will solve your Problem

you can also watch this video

Thank you

by Vishnu Sharma

How to Configure samba Server in redhat Linux

hello guys today we will learn how to configure samba server in RedHat Linux Server. samba server is a very important in Linux server. we cam share any data one machine to another machine through samba Server. before samba server configuration we need to install some important package. if we want that our Linux machine in each  Package install  very easy so we need YUM Server Configuration i have already write tutorial on yum Server. If you want to know that how to configure yum Server so click on my link and look

samba server

so here i agree your system in have yum server then we will continue

Step 1 = we will install samba Server package through this Commands 

[root@localhost ~]# yum install samba* -y 

Step 2 then we will Create directory for samba server 

[root@localhost ~]# mkdir ishu 

Step 3 now we will Create New User For Samba Interface 

[root@localhost ~]# useradd ishu
[root@localhost ~]# passwd ishu
Changing password for user ishu.
New UNIX password:ishu
BAD PASSWORD: it is too short
Retype new UNIX password:ishu 
passwd: all authentication tokens updated successfully.

Step 5 now we will provide full Permission for user through below Commands

[root@localhost ~]# chmod 7 ishu

Step 5 then we will gave samba user password through this commands

[root@localhost ~]# smbpasswd -a ishu
New SMB password:ishu
Retype new SMB password:ishu 
Added user ishu.

Step 6 Then we will on samba Serves

[root@localhost ~]# service smb restart
Shutting down SMB services:                                [FAILED]
Shutting down NMB services:                                [FAILED]
Starting SMB services:                                     [  OK  ]
Starting NMB services:

Step 7 now we will  off our fire wall and selinux  below Commands

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Step 8 now we will look our linux machine ip address through this commands

[root@localhost ~]# ifconfig
eth2      Link encap:Ethernet  HWaddr 08:00:27:35:57:7A
          inet addr:192.168.56.103  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe35:577a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:392911 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30439 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:552717032 (527.1 MiB)  TX bytes:3537248 (3.3 MiB)
          Base address:0xd248 Memory:f0840000-f0860000

Step 9 then we will go in windows system  and open Run windows and type jut linux machine ip address ip address

Step 10 Then we will enter samba user name and password 

if you have any problem in this process so comments here i will solve your problem

Thank you

my Vishnu Sharma

how to create virtual IP Address through real IP address and host multiple Website

hello guys today we will learn how to create virtual IP Address through real IP address and host multiple website on singles system. It’s a very simple process in RedHat Linux Server. Before we will install some necessary package for hosting Virtual IP address. if we want that   all type package install easily in your linux machine  so we have to need YUM server we can configure YUM Server very easily you just lick on my link and look  how to configure YUM server. After YUM server configure you just follow my simple Step

Step 1  here i agree that you have YUM server in our Linux machine then we will continue

[root@localhost ~]# ifconfig
eth2      Link encap:Ethernet  HWaddr 08:00:27:35:57:7A
          inet addr:192.168.56.103  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe35:577a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1933 errors:0 dropped:0 overruns:0 frame:0
          TX packets:632 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:183768 (179.4 KiB)  TX bytes:107123 (104.6 KiB)
          Base address:0xd248 Memory:f0840000-f0860000

 Step2  then we will virtual IP address Here kind this

[root@localhost ~]# ifconfig eth1:0 192.168.56.108

Step3  then we will install php package through yum server

[root@localhost ~]# yum install php* -y

Step4 then we will going following directory /var/www/html/ and here create any folder for our website hosting for example here i create two folder for my two web pages one is php folder two is html folder. And both folder in we will create html file 

[root@localhost ~]# cd /var/www/html/
[root@localhost html]# mk dir php
[root@localhost html]# mkdir html

Step5 here php and html folder in we will create any html files or our past our website content

[root@localhost php]# vim php.php
<?echo
echo "hello this is php demo ";
echo "hello this is php website host demo";
?>
~
~
~
:wq
[root@localhost ~]# cd /var/www/html/html
[root@localhost html]# vim html.html
<html>
<head>this is demo</head>
<title>Demo</title>
<body>
<h1> this is dual webhosting deno in linux machine </h1>
<h2>this dual  webhosting Demo with Virtual IP Address</h2>
</body>
</html>
~
~
~
:wq

Step5 then we will go Apache Configuration File and do something  below configuration

#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost 192.168.56.103:80>
DocumentRoot /var/www/html/php/
DirectoryIndex php.php
</VirtualHost>
<VirtualHost 192.168.56.108:80>
DocumentRoot /var/www/html/html/
DirectoryIndex html.html
</virtualHost>
"/etc/httpd/conf/httpd.conf" 1000L, 33934C

here we will configure document root  Directory index with real and virtual ip Address

Step 6 then we will restart serves below commands 

[root@localhost ~]# service httpd restart

Step 7 now we will off our Linux machine firewall and selinux through below commands  

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Step 8 then we will going to any browser in put our IP address and Virtual ip address. now we will look that our website is looking here

how to create virtual ip address

if you have any problem in this process so please comment here i will solve your problem

Thank you

by Vishnu sharma

 

How to configure RIP Routing in Cisco Packet tracer

hello guys today we will learn how to configure RiP(Routing Information protocol ) Routing in cisco packet tracer its a very simple process you just fillow my step

Rip routing

Step1.  before we will take three router and three pc and we assign ip address According chart   

PC0 1.0.0.2 default geteway 1.0.0.1
PC1 3.0.0.2 default geteway 3.0.0.1
PC2 5.0.0.2 default geteway 5.0.0.1
/Router/all Router port Se/0/0/0 Se/0/1/1 Fa0/0
ROUTER0 2.0.0.1 —– 1.0.0.1
ROUTER1 2.0.0.2 4.0.0.1 3.0.0.1
ROUTER2 ——- 4.0.0.2 5.0.0.1

Step2 we will go in Router 0 CLI mod and congigure ip address like this

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int Fa0/0
Router(config-if)#ip address 1.0.0.1 255.0.0.0
Router(config-if)#no shut                                                                                                     Router(config-if)#exit
Router(config)#int Se0/0/0
Router(config-if)#ip address 2.0.0.1 255.0.0.0
Router(config-if)#no shut

Step2  now we will go Router1 CLI mod and configure io address

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int Fa0/0
Router(config-if)#ip address 3.0.0.1 255.0.0.0
Router(config-if)#no shut
Router(config)#exit
Router(config)#int Se0/0/0
Router(config-if)#ip address 2.0.0.2 255.0.0.0
Router(config-if)#no shut
Router(config)#exit
Router(config)#int Se0/1/1
Router(config-if)#ip address 4.0.0.1 255.0.0.0
Router(config-if)#no shut

Srep3 and now we will configure ip address in router2

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int Fa0/0
Router(config-if)#ip address 5.0.0.1 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int Se0/1/1
Router(config-if)#ip address 4.0.0.2 255.0.0.0
Router(config-if)#no shut

Step 4 After ip address configuration we will configure each router in ip RIP routing like this

Router o

Router(config)#router rip
Router(config-router)#network 1.0.0.0
Router(config-router)#network 2.0.0.0

Router 1

Router(config)#router rip
Router(config-router)#network 2.0.0.0
Router(config-router)#network 3.0.0.0
Router(config-router)#network 4.0.0.0

Router 2

Router(config)#router rip
Router(config-router)#network 5.0.0.0
Router(config-router)#network 4.0.0.0

if you have problem in this rip routing so comment here i will solve your problem. you can also download rip routing lab through this link

thank you

by Vishnu  Sharma

how to configure FTP server in Redhat Linux Server part 1

hello guys today we will discuss how can we configure FTP(File Transfer protocol) Server in Redhat Linux Server .FTP server through we can download and upload any file or content.Its a very simple process if you follow my artical steps .so before we will install YUM server in our Linux machine because YUM is a very helpful service in package installation.if you want to know how to configure YUM in our linux machine so click on link and look   ftp serverso guys here i agree you configure YUM server in our ReadHat Linux Machine then we will contunue

step1= we will install Ftp package below commands 

[root@localhost ~]# yum install vsftpd* -y

Step2= then we will verify and start FTP service

[root@localhost ~]# service vsftpd restart
Shutting down vsftpd:                                      [  OK  ]
Starting vsftpd for vsftpd:                                [  OK  ]
[root@localhost ~]# service vsftpd status
vsftpd (pid 5668) is running...
[root@localhost ~]# chkconfig vsftpd on

Step3= Then we will off our machine firewall and selinux below commands 

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Ftp server is share /var/ftp directory if we have any data in  in this directory so client can download data through ftp server

Step4= then we will go Windows machine in and open any browser and put our linux IP Address

Ftp derver

then your Browser in open /var/ftp/ folder here you can download to here .we can also open FTP server in command prompt

if you have any problem in this process so comments here i will solve your problem

thank you

writer- Vishnu Sharma

How to configure Stelnet in redhat linux server

hello guys today we will discuss about secure telnet Server. basically secure telnet is a custom telnet its same copy of telnet server but here we will configure with our customize port.If you  want to know how to configure simple telnet server so click on link. before we telnet package in our linux machine. if we want we can install every type package easily  so  we need  to Yum server configuration you just click on link and look how to configure yum. Stelnet Server

Here I agree that you have configured YUM server in your machine

For any Tutorial visit linuxtiwary.com

Continue reading