2022-05-15 20:28:48 +02:00
|
|
|
\subsection{\texttt{INTRA}}
|
2022-05-16 00:37:24 +02:00
|
|
|
|
|
|
|
set hostname \&\& port-sec recovery timeout
|
|
|
|
\begin{verbatim}
|
|
|
|
en
|
|
|
|
conf t
|
|
|
|
#
|
|
|
|
# set hostname to INTRA
|
|
|
|
#
|
|
|
|
hostname INTRA
|
|
|
|
#
|
|
|
|
# port-sec recovery timeout - 120s
|
|
|
|
#
|
|
|
|
errdisable recovery interval 120s
|
|
|
|
errdisable recovery cause psecure-violation
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
\noindent
|
|
|
|
enable port-sec for g0/{1|2|3}
|
|
|
|
\begin{verbatim}
|
|
|
|
# continuation of the previous block, no need to "enable" and "conf t" again
|
|
|
|
interface g0/1
|
|
|
|
switchport mode access
|
|
|
|
switchport port-security maximum 2
|
|
|
|
switchport port-security violation shutdown
|
|
|
|
switchport port-security mac-address sticky
|
|
|
|
switchport port-security
|
|
|
|
#
|
|
|
|
# g0/2
|
|
|
|
#
|
|
|
|
interface g0/2
|
|
|
|
switchport mode access
|
|
|
|
switchport port-security maximum 2
|
|
|
|
switchport port-security violation shutdown
|
|
|
|
switchport port-security mac-address sticky
|
|
|
|
switchport port-security
|
|
|
|
#
|
|
|
|
# g0/3
|
|
|
|
#
|
|
|
|
interface g0/3
|
|
|
|
switchport mode access
|
|
|
|
switchport port-security maximum 2
|
|
|
|
switchport port-security violation shutdown
|
|
|
|
switchport port-security mac-address sticky
|
|
|
|
switchport port-security
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
\noindent
|
|
|
|
trust arp packets from g0/0 (\texttt{STAFF})
|
2022-05-15 20:28:48 +02:00
|
|
|
\begin{verbatim}
|
2022-05-16 00:37:24 +02:00
|
|
|
en
|
|
|
|
conf t
|
|
|
|
in g0/0
|
|
|
|
no shut
|
|
|
|
ip arp inspection trust
|
|
|
|
end
|
|
|
|
#
|
|
|
|
# verify
|
|
|
|
#
|
|
|
|
show ip arp inspection interfaces g0/0
|
2022-05-15 20:28:48 +02:00
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
\subsubsection{Intranet}
|
2022-05-16 00:37:24 +02:00
|
|
|
\texttt{INTRA} cofigure vlan
|
2022-05-15 20:28:48 +02:00
|
|
|
\begin{verbatim}
|
2022-05-16 00:37:24 +02:00
|
|
|
en
|
|
|
|
conf t
|
|
|
|
vlan 7
|
|
|
|
#
|
|
|
|
# set name
|
|
|
|
#
|
|
|
|
name Intranet
|
|
|
|
exit
|
|
|
|
#
|
|
|
|
# add ports
|
|
|
|
#
|
|
|
|
in g0/1
|
|
|
|
switchport access vlan 7
|
|
|
|
in g0/2
|
|
|
|
switchport access vlan 7
|
|
|
|
in g0/3
|
|
|
|
switchport access vlan 7
|
|
|
|
exit
|
2022-05-15 20:28:48 +02:00
|
|
|
\end{verbatim}
|