51982

linux device driver for pure ipv6 device

Question:

I am currently designing a linux driver for a pure IPv6 driver. Is there any way to make the kernel module only support IPv6 and can only be assigned IPv6 address? What is the commands in linux to set the address?

Thanks

Answer1:

<strong>Adding IP:</strong>

Using ip command:

$sudo /sbin/ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0

Using ifconfig command:

$sudo /sbin/ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64

<strong>Deleting IP:</strong>

Using ip

$sudo /sbin/ip -6 addr del 2001:0db8:0:f101::1/64 dev eth0

Using ifconfig

$sudo /sbin/ifconfig eth0 inet6 del 2001:0db8:0:f101::1/64

Recommend

  • How do we specify the client area size of a form in design mode?
  • add scrollbar in qt window?
  • Mule ESB connecting to RabbitMQ
  • SQL Count. How can I count how many distinct values are in a table when an other two columns are mat
  • html/css: how to create a hexagonal image-placeholder
  • Does Julia have something equivalent to Ans (Matlab) or Last.value (R)
  • cannot be assigned to — it is read only - C#
  • Google cloud datastore emulator init data
  • Google OAuth2 for an web application hosted behind NAT (intranet server without public IP)
  • How to resolve docker host names (/etc/hosts) in containers
  • Recreate the Oracle DUAL table
  • Should I be afraid to use UDP to make a client/server broadcast talk?
  • How dotnet build chooses the output name
  • Spark (Scala) Writing (and reading) to local file system from driver
  • Portable JRE on Linux - possible?
  • Can you pass an array from javascript to asp.net mvc controller action without using a form?
  • pip in virtualenv gets ConnectTimeoutError
  • How do I include a SWC in an AS2 Flash project?
  • How to add a focus style to an editable ComboBox in WPF
  • How to assign byte[] as a pointer in C#
  • pyodbc doesn't report sql server error
  • How do I superscript characters in a UIButton?
  • How to Cache Real-time Data?
  • Hardware Accelerated Image Scaling in windows using C++
  • Meteor: Do Something On Email Verification Confirmation
  • Cannot resolve symbol 'MyApi'
  • How to get address from latitude and longitude android google map v2 [duplicate]
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • Can I make an Android app that runs a web view in Chrome 39?
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • How to include full .NET prerequisite for Wix Burn installer
  • using HTMLImports.whenReady not working in chrome
  • How to set the response of a form post action to a iframe source?
  • coudnt use logback because of log4j
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • reshape alternating columns in less time and using less memory