顯示具有 Network 標籤的文章。 顯示所有文章
顯示具有 Network 標籤的文章。 顯示所有文章

2016年5月16日 星期一

2015年7月20日 星期一

2013年10月11日 星期五

[Network] How to enable forwarding and disable filtering


[Network] How to enable forwarding and disable filtering



Method 1

    echo "1" > /proc/sys/net/ipv4/ip_forward

    echo "1" > /proc/sys/net/ipv6/conf/all/forwarding



Method 2

    sysctl -w net.ipv4.ip_forward=1

    sysctl -w net.ipv6.conf.all.forwarding=1

    sysctl -w net.ipv4.conf.all.rp_filter=0



Reference :




      


2013年8月29日 星期四

[Internet] How to configure the network interface


[Internet] How to configure the network interface




  1.  sudo vim /etc/network/interfaces




    • Static

      iface eth0 inet static



      address 192.168.0.10

      netmask 255.255.255.0

      network 192.168.0.0

      broadcast 192.168.0.255

      gateway 192.168.0.1

      dns-nameservers 216.10.119.241

       


    • DHCP

      iface eth0 inet dhcp




  2. sudo ifconfig eth0 down , sudo ifconfig eth0 up



Reference :



2013年4月11日 星期四

[ethtool] How to use ethtool


sudo ethtool eth0
[sudo] password for freeman:

Settings for eth0:

    Supported ports: [ TP MII ]

    Supported link modes:   10baseT/Half 10baseT/Full

                            100baseT/Half 100baseT/Full

                            1000baseT/Half 1000baseT/Full

    Supports auto-negotiation: Yes

    Advertised link modes:  10baseT/Half 10baseT/Full

                            100baseT/Half 100baseT/Full

                            1000baseT/Half 1000baseT/Full

    Advertised pause frame use: No

    Advertised auto-negotiation: Yes

    Link partner advertised link modes:  10baseT/Half 10baseT/Full

                                         100baseT/Half 100baseT/Full

                                         1000baseT/Full

    Link partner advertised pause frame use: No

    Link partner advertised auto-negotiation: Yes

    Speed: 1000Mb/s

    Duplex: Full

    Port: MII

    PHYAD: 0

    Transceiver: internal

    Auto-negotiation: on

    Supports Wake-on: pumbg

    Wake-on: g

    Current message level: 0x00000033 (51)

    Link detected: yes (This is show interface online now)



[Ethernet Interface] Ethernet interface can't work properly


[Ethernet Interface] Ethernet interface can't work properly



I installed  synergy, but I don't cancel "Synchronize screen savers".

That why cause my ethernet interface can't work properly.



Solution :

My Hard Disk have dual OS.

I switch to windows 7.

cancel "allow computer shutdown this device to save power", then switch Ubuntu 10.04 again.

The interface work properly now.







Reference :



2013年1月31日 星期四

[IPv6][IPv4] IPv6 and IPv4 subnet matrix table


[IPv6][IPv4] IPv6 and IPv4 subnet matrix table


IPv6 subnet matrix table

2001:0DB8:0400:000e:0000:0000:0000:402b
XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX
||| |||| |||| |||| |||| |||| ||||
||| |||| |||| |||| |||| |||| |||128
||| |||| |||| |||| |||| |||| ||124
||| |||| |||| |||| |||| |||| |120
||| |||| |||| |||| |||| |||| 116
||| |||| |||| |||| |||| |||112
||| |||| |||| |||| |||| ||108
||| |||| |||| |||| |||| |104
||| |||| |||| |||| |||| 100
||| |||| |||| |||| |||96
||| |||| |||| |||| ||92
||| |||| |||| |||| |88
||| |||| |||| |||| 84
||| |||| |||| |||80
||| |||| |||| ||76
||| |||| |||| |72
||| |||| |||| 68
||| |||| |||64
||| |||| ||60
||| |||| |56
||| |||| 52
||| |||48
||| ||44
||| |40
||| 36
||32
|28
24

IPv4 subnet matrix table






Reference :




  1. IPv6 subnet matrix table


  2. Working with IP Addresses


[Net Tool][Network Security] Net Tools

[Net Tool][Network Security] Net Tools










Net Tools is cutting-edge security and network monitoring software for the Internet and Local Area Networks, providing clients with the ability and confidence to meet the challenges of tomorrow's technology.

Reference :



  1. Debian package - net-tools


  2. Net Tools © 2012 Mohammad Ahmadi Bidakhvidi