cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
996
Views
5
Helpful
6
Replies

how add static route to ubuntu Guest Docker in GNS 3?

hfakoor222
Spotlight
Spotlight

I ahve some Guest Docker Ubuntu containers, they can connect to the topology but I want to add static routes. How can i add a static route to it?

 

It seems like route add 

command might do something

2.png4.png

6 Replies 6

hfakoor222
Spotlight
Spotlight

I think I figured it out with this command, now I have to get the l2 switch to ping the router, ading routes to these vpcs is annoying 

 

3.png

But this emulate pc config dhcp and config defualt route will do job i think.

hfakoor222
Spotlight
Spotlight

I have another question would anyone have a suggestion to add a static route from this layer 2 D2 switch to reach 10.1.0.1  R3   f0/1 interface

Only thing I have defined on it is a management VLAN, and I can't point static route out the access port

2.png

2#sh run
*Jul 4 01:29:04.269: %SYS-5-CONFIG_I: Configured from console by console
D2#sh run
Building configuration...

Current configuration : 2870 bytes
!
! Last configuration change at 01:29:04 UTC Mon Jul 4 2022
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname D2
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
no ip domain-lookup
ip cef
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
media-type rj45
negotiation auto
!
interface GigabitEthernet0/1
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/2
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface Vlan1
ip address 10.1.0.2 255.255.255.0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane

 

 

Ip routing need for static route 

If you want to keep it as l2 sw 

Then defualt gateway will be only need.

hfakoor222
Spotlight
Spotlight

I crashed my computer earlier and it did something when it autosaved the GNS topology to where the access port behavior wouldn't ping to the router. 

Review Cisco Networking for a $25 gift card