Nasser Heidari


Linux Dummy network device

Filed under: Linux — Nasser Heidari @ 18:05

A dummy interface is used by TCP/IP to assign an IP address to your machine, which is required for both SLIP and PPP. The reason for a dummy interface is simple: When you connect to an ISP, your IP address is often assigned dynamically, and you never know what the IP address will be in advance. This can cause problems for TCP/IP routines in your kernel that need to know an IP address to function properly. TCP/IP is happy when you assign an IP address—the dummy interface IP address—to your machine. The need for an IP address internally is most important when you are not connected to your ISP because many network-aware applications (such as email, newsreaders, and so on) need to have some IP address to connect to, even if it doesn’t lead anywhere. This dummy interface IP address does not conflict with the one assigned by your ISP.

# modprobe dummy # ifconfig dummy0 netmask # modprobe dummy -o dummy1 # ifconfig dummy1 netmask

if you need to create 5 dummy interfaces , you can use this command :

# modprobe dummy numdummies=5

1 Comment »

  1. Thanks for the tutorial ! :)

    Comment by Ahmed Amer — 2012-07-05 @ 12:29

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: