Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SR06
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Theo Maillart
SR06
Commits
caa9e60c
Commit
caa9e60c
authored
Dec 03, 2017
by
Theo Maillart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base config
parent
8ff6147e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
0 deletions
+61
-0
Cisco/routeur
Cisco/routeur
+55
-0
Cisco/switch_conf.txt
Cisco/switch_conf.txt
+0
-0
Cisco/wifi
Cisco/wifi
+2
-0
Docker/createNetworks.sh
Docker/createNetworks.sh
+4
-0
No files found.
Cisco/routeur
View file @
caa9e60c
# VLAN -> Admin: 81 Personnel: 82 Invite: 83
# reset conf
enable
write erase
delete flash:vlan.dat
reload
# base conf
## create VLAN
conf t
vlan 81
name VLAN_ADM
state active
exit
vlan 82
name VLAN_PERS
state active
exit
vlan 83
name VLAN_INVITE
state active
exit
## conf ip
int vlan 81
ip address 100.81.0.1 255.255.255.0
int vlan 82
ip address 10.0.82.1 255.255.255.0
int vlan 83
ip address 10.0.83.1 255.255.255.0
## conf physic port
int fastethernet0
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,81-83,1002-1005
switchport trunk native vlan 81
exit
exit
# save startup-conf
write memory
# filtering
access-list 101 permit tcp any host 10.0.81.1 eq 22
int vlan 82
ip access-group 101 in
# NAT inside = priv outside =target
interface vlan 85
ip nat inside
interface vlan 86
ip nat outside
ip nat pool ovrld 10.0.16.1 10.0.16.1 prefix 24
ip nat inside source list 9 pool ovrld overloadaccess-list 9 permit 10.0.15.0 0.0.0.255
Cisco/switch_conf
→
Cisco/switch_conf
.txt
View file @
caa9e60c
File moved
Cisco/wifi
0 → 100644
View file @
caa9e60c
# VLAN -> Admin: 81 Personnel: 82 Invite: 83
# address 100.81.0.5
Docker/createNetworks.sh
0 → 100644
View file @
caa9e60c
#!/bin/bash
docker network create
-d
macvlan
--subnet
=
10.0.82.0/24
--gateway
=
10.0.82.1
-o
parent
=
ens9.82 vlan82
docker network create
-d
macvlan
--subnet
=
10.0.83.0/24
--gateway
=
10.0.83.1
-o
parent
=
ens9.83 vlan83
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment