Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git-virl-hs-fulda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Rieger
git-virl-hs-fulda
Commits
0ccbcbb1
Commit
0ccbcbb1
authored
9 years ago
by
patrick.bug
Browse files
Options
Downloads
Patches
Plain Diff
ISP packet loss
parent
81f42c4b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
GIT-VIRL-HS-Fulda/KOMPROT_wanem_uebung.virl
+1
-4
1 addition, 4 deletions
GIT-VIRL-HS-Fulda/KOMPROT_wanem_uebung.virl
with
1 addition
and
4 deletions
GIT-VIRL-HS-Fulda/KOMPROT_wanem_uebung.virl
+
1
−
4
View file @
0ccbcbb1
...
...
@@ -165,23 +165,20 @@ write_files:
<entry
key=
"Auto-generate config"
type=
"Boolean"
>
false
</entry>
<entry
key=
"config"
type=
"String"
>
ifconfig eth1 up 192.168.101.1 netmask 255.255.255.252

ifconfig eth2 up 192.168.102.1 netmask 255.255.255.252



dhclient eth0

dhclient eth3



route add default gw 172.16.1.254 eth3

route add -net 192.168.101.0/30 gw 192.168.101.2 dev eth1

route add -net 192.168.1.0/24 gw 192.168.101.2 dev eth1

route add -net 192.168.102.0/30 gw 192.168.102.2 dev eth2

route add -net 192.168.2.0/24 gw 192.168.102.2 dev eth2



iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE

iptables -A FORWARD -i eth2 -j ACCEPT

iptables -A FORWARD -i eth1 -j ACCEPT

/sbin/tc qdisc add dev eth
3
root handle 1:1 netem delay 100ms

/sbin/tc qdisc add dev eth
2
root handle 1:1 netem delay 100ms
loss 5%

service ssh start


hostname ISP

...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment