Tags: fedora,route

Sort by: Date / Title /

  1. 1 year ago by spirit
    1. # Use of ip command
    2. ip route add 192.168.55.0/24 via 192.168.1.254 dev eth1
    3. route add -net 192.168.55.0 netmask 255.255.255.0 gw 192.168.1.254 dev eth1
    4.  
    5. #----------------------------------------------
    6. # Red Hat/Fedora Linux Static route file
    7. #----------------------------------------------
    8. cat /etc/sysconfig/network-scripts/route-eth0
    9.  
    10. GATEWAY0=192.168.1.254
    11. NETMASK0=255.255.255.0
    12. ADDRESS0=192.168.55.0
    13.  
    14. GATEWAY1=10.164.234.112
    15. NETMASK1= 255.255.255.240
    16. ADDRESS1=10.164.234.132
    17.  
    18. #------------------------------------
    19. # Debian Linux static routes file
    20. #------------------------------------
    21. cat /etc/network/interface
    22.  
    23. auto eth0
    24. iface eth0 inet static
    25. address 192.168.1.2
    26. netmask 255.255.255.0
    27. gateway 192.168.1.254
    28. up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
    29. down route del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1

First / Previous / Next / Last / Page 1 of 1 (1 posteets)