SlideShare a Scribd company logo
A dirty trick to save a couple of IPv4
addresses on a LAN link
AusNOG 2018 Mark Smith
markzzzsmith@gmail.com
@markzzzsmith
203.0.113.3
SM - 255.255.255.0
DG - 203.0.113.2
BCAST - 203.0.113.255
203.0.113.2
SM - 255.255.255.0
BCAST - 203.0.113.255
203.0.113.0/24
203.0.113.3
SM - 255.255.255.254 (i.e. /31)
DG - 203.0.113.2
BCAST - ????
203.0.113.2
SM - 255.255.255.0
BCAST - 203.0.113.255
203.0.113.0/24
203.0.113.3
SM - 255.255.255.254 (i.e. /31)
DG - 203.0.113.2
BCAST - 255.255.255.255
203.0.113.2
SM - 255.255.255.0
BCAST - 203.0.113.255
203.0.113.0/24
203.0.113.3
SM - 255.255.255.255 (i.e. /32)
DG - ????
BCAST - 255.255.255.255
203.0.113.2
SM - 255.255.255.0
BCAST - 203.0.113.255
203.0.113.0/24
203.0.113.3
SM - 255.255.255.255 (i.e. /32)
DG - 169.254.0.1
Reach 169.254.0.1 - ???
BCAST - 255.255.255.255
169.254.0.1
SM - ????
BCAST - ????
Reach 203.0.113.0/24s - ????
203.0.113.0/24
169.254.0.0/16
- Link-Local Prefix (RFC3927)
- No forwarding off-link
- Use on many links (all) fine
169.254.0.1
SM - 255.255.255.255 (i.e.
/32)
BCAST - 255.255.255.255
Reach 203.0.113.0/24s -
ip route 203.0.113.0/24 eth0
203.0.113.0/24 eth0
eth0
203.0.113.3
SM - 255.255.255.255 (i.e. /32)
DG - 169.254.0.1
Reach 169.254.0.1 - ip route 169.254.0.0/32
eth0 (host equiv)
BCAST - 255.255.255.255
169.254.0.1
SM - 255.255.255.255 (i.e.
/32)
BCAST - 255.255.255.255
Reach 203.0.113.0/24s -
ip route 203.0.113.0/24 eth0
eth0
eth0
203.0.113.3
SM - 255.255.255.255 (i.e. /32)
DG - 169.254.0.1
Reach 169.254.0.1 - ip route 169.254.0.0/32
eth0 (host equiv)
BCAST - 255.255.255.255
203.0.113.0/32
BCAST 255.255.255.255, DG 169.254.0.1 203.0.113.255/32
BCAST 255.255.255.255, DG 169.254.0.1
Link address space
203.0.113.0/24
Works - Linux Host
[root@opy mark]# ip addr add 192.168.0.0/32 brd 255.255.255.255 dev enp0s25
[root@opy mark]# ip addr show enp0s25 | grep 192.168
inet 192.168.0.0/32 brd 255.255.255.255 scope global enp0s25
[root@opy mark]#
[root@opy mark]# ip route add 169.254.0.1/32 dev enp0s25
[root@opy mark]# ip route show 169.254.0.1
169.254.0.1 dev enp0s25 scope link
[root@opy mark]#
[root@opy mark]# ip route add default via 169.254.0.1
[root@opy mark]# ip route show default
default via 169.254.0.1 dev enp0s25
[root@opy mark]#
Works - Linux Router
root@lede-wndr3800:~# ip addr add 169.254.0.1/32 brd 255.255.255.255 dev br-lan
root@lede-wndr3800:~# ip addr show dev br-lan | grep 169.254.0.1
inet 169.254.0.1/32 brd 255.255.255.255 scope global br-lan
root@lede-wndr3800:~#
root@lede-wndr3800:~# ip route add 192.168.0.0/24 dev br-lan
root@lede-wndr3800:~# ip route show | grep 192
192.168.0.0/24 dev br-lan
root@lede-wndr3800:~#
Works - Linux Host
<ping output here>
Yes it works, forgot to capture it
Works (?) - Cisco router
A long time ago, pretty sure it worked.
int eth0
ip address 169.254.0.1 255.255.255.255
(‘ip broadcast-address 255.255.255.255’ default)
ip route 203.0.113.0 255.255.255.0 eth0
Advantages
Got two more IPv4 addresses on the LAN link
Woohoo!
IPv4 FTW!
Meh
Use IPv6if you want/need more
addresses.
Advantages
Default Gateway address decoupled
from hosts’ “application” address
prefix.
Advantages
Renumber hosts without changing
their Default Gateway address.
Advantages
Removed one of hosts’ external dependencies.
Good principle to remove external dependencies
- simpler, therefore more reliable.
This is how IPv6 works
IPv6 hosts’ default gateway is a link-
local address
e.g., fe80::abcd/64
CC image courtesy of Kiwithing
http://www.flickr.com/photos/kiwisaotome/8261132558/sizes/c/
in/photostream/
Presentation clipart sourced from
https://openclipart.org/

More Related Content

Similar to AusNOG 2018 - A dirty trick to save a couple of IPv4 addresses on a LAN link.

Lab- Full IPsec Implementation.pdf
Lab- Full IPsec Implementation.pdfLab- Full IPsec Implementation.pdf
Lab- Full IPsec Implementation.pdf
Nesibusami
 
Service Provider Networks and Frame Relay
Service Provider Networks and Frame RelayService Provider Networks and Frame Relay
Service Provider Networks and Frame Relay
Tharindu Sankalpa
 
Network security lab certification 350 018
Network security lab certification 350 018Network security lab certification 350 018
Network security lab certification 350 018
VISUAL MART - HERBERT PATZAN CARRILLO
 
Networking Lab Report
Networking Lab ReportNetworking Lab Report
Networking Lab Report
Syed Ahmed Zaki
 
PLNOG 4: Marcin Kuczera - Jak wyrzuciliśmy wszystkie Linuxy, czyli centralny ...
PLNOG 4: Marcin Kuczera - Jak wyrzuciliśmy wszystkie Linuxy, czyli centralny ...PLNOG 4: Marcin Kuczera - Jak wyrzuciliśmy wszystkie Linuxy, czyli centralny ...
PLNOG 4: Marcin Kuczera - Jak wyrzuciliśmy wszystkie Linuxy, czyli centralny ...
PROIDEA
 
JAWS DAYS 2018
JAWS DAYS 2018JAWS DAYS 2018
JAWS DAYS 2018
Itaru Ogawa
 
Day 17.1 nat pat (2)
Day 17.1 nat pat  (2)Day 17.1 nat pat  (2)
Day 17.1 nat pat (2)
CYBERINTELLIGENTS
 
8 subredesssss
8 subredesssss8 subredesssss
8 subredesssss
sovon123
 
Tri aoi training-supplementary_2011.01
Tri aoi training-supplementary_2011.01Tri aoi training-supplementary_2011.01
Tri aoi training-supplementary_2011.01Ralph Nguyen
 
R1
R1R1
CISCO Live SD-WAN Technology Bi-Diractional
CISCO Live SD-WAN Technology Bi-DiractionalCISCO Live SD-WAN Technology Bi-Diractional
CISCO Live SD-WAN Technology Bi-Diractional
sachidaddjrt
 
6th floorsharingsession ep 1 - networking - arp v 1.0
6th floorsharingsession ep 1 - networking - arp v 1.06th floorsharingsession ep 1 - networking - arp v 1.0
6th floorsharingsession ep 1 - networking - arp v 1.0
A Achyar Nur
 
CCNA Scaling NetworksSA Exam CCNA Scaling NetworksSkills .docx
CCNA Scaling NetworksSA Exam CCNA Scaling NetworksSkills .docxCCNA Scaling NetworksSA Exam CCNA Scaling NetworksSkills .docx
CCNA Scaling NetworksSA Exam CCNA Scaling NetworksSkills .docx
keturahhazelhurst
 
Nat pat
Nat patNat pat
Alcatel vm
Alcatel vmAlcatel vm
Alcatel vm
Muideen Jokanola
 
103320664 eigrp-sba
103320664 eigrp-sba103320664 eigrp-sba
103320664 eigrp-sbajlvive
 
Installing spark 2
Installing spark 2Installing spark 2
Installing spark 2
Ahmed Mekawy
 
MULTIMEDIA COMMUNICATION & NETWORKS
MULTIMEDIA COMMUNICATION & NETWORKSMULTIMEDIA COMMUNICATION & NETWORKS
MULTIMEDIA COMMUNICATION & NETWORKS
Kathirvel Ayyaswamy
 
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
SilvioDias29
 

Similar to AusNOG 2018 - A dirty trick to save a couple of IPv4 addresses on a LAN link. (20)

Lab- Full IPsec Implementation.pdf
Lab- Full IPsec Implementation.pdfLab- Full IPsec Implementation.pdf
Lab- Full IPsec Implementation.pdf
 
Service Provider Networks and Frame Relay
Service Provider Networks and Frame RelayService Provider Networks and Frame Relay
Service Provider Networks and Frame Relay
 
Network security lab certification 350 018
Network security lab certification 350 018Network security lab certification 350 018
Network security lab certification 350 018
 
Networking Lab Report
Networking Lab ReportNetworking Lab Report
Networking Lab Report
 
PLNOG 4: Marcin Kuczera - Jak wyrzuciliśmy wszystkie Linuxy, czyli centralny ...
PLNOG 4: Marcin Kuczera - Jak wyrzuciliśmy wszystkie Linuxy, czyli centralny ...PLNOG 4: Marcin Kuczera - Jak wyrzuciliśmy wszystkie Linuxy, czyli centralny ...
PLNOG 4: Marcin Kuczera - Jak wyrzuciliśmy wszystkie Linuxy, czyli centralny ...
 
JAWS DAYS 2018
JAWS DAYS 2018JAWS DAYS 2018
JAWS DAYS 2018
 
Day 17.1 nat pat (2)
Day 17.1 nat pat  (2)Day 17.1 nat pat  (2)
Day 17.1 nat pat (2)
 
8 subredesssss
8 subredesssss8 subredesssss
8 subredesssss
 
Tri aoi training-supplementary_2011.01
Tri aoi training-supplementary_2011.01Tri aoi training-supplementary_2011.01
Tri aoi training-supplementary_2011.01
 
R1
R1R1
R1
 
CISCO Live SD-WAN Technology Bi-Diractional
CISCO Live SD-WAN Technology Bi-DiractionalCISCO Live SD-WAN Technology Bi-Diractional
CISCO Live SD-WAN Technology Bi-Diractional
 
6th floorsharingsession ep 1 - networking - arp v 1.0
6th floorsharingsession ep 1 - networking - arp v 1.06th floorsharingsession ep 1 - networking - arp v 1.0
6th floorsharingsession ep 1 - networking - arp v 1.0
 
CCNA Scaling NetworksSA Exam CCNA Scaling NetworksSkills .docx
CCNA Scaling NetworksSA Exam CCNA Scaling NetworksSkills .docxCCNA Scaling NetworksSA Exam CCNA Scaling NetworksSkills .docx
CCNA Scaling NetworksSA Exam CCNA Scaling NetworksSkills .docx
 
Nat pat
Nat patNat pat
Nat pat
 
Alcatel vm
Alcatel vmAlcatel vm
Alcatel vm
 
103320664 eigrp-sba
103320664 eigrp-sba103320664 eigrp-sba
103320664 eigrp-sba
 
Rac
RacRac
Rac
 
Installing spark 2
Installing spark 2Installing spark 2
Installing spark 2
 
MULTIMEDIA COMMUNICATION & NETWORKS
MULTIMEDIA COMMUNICATION & NETWORKSMULTIMEDIA COMMUNICATION & NETWORKS
MULTIMEDIA COMMUNICATION & NETWORKS
 
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
 

More from Mark Smith

NZNOG 2020 - IETF Highlights for Operators
NZNOG 2020 - IETF Highlights for OperatorsNZNOG 2020 - IETF Highlights for Operators
NZNOG 2020 - IETF Highlights for Operators
Mark Smith
 
NZNOG 2020 - Getting IPv6 Private Addressing Right
NZNOG 2020 - Getting IPv6 Private Addressing RightNZNOG 2020 - Getting IPv6 Private Addressing Right
NZNOG 2020 - Getting IPv6 Private Addressing Right
Mark Smith
 
NZNOG 2020 - The Trouble With NAT
NZNOG 2020 - The Trouble With NATNZNOG 2020 - The Trouble With NAT
NZNOG 2020 - The Trouble With NAT
Mark Smith
 
IETF 106 - Pikachu Birds of a Feather (BoF)
IETF 106 - Pikachu Birds of a Feather (BoF)IETF 106 - Pikachu Birds of a Feather (BoF)
IETF 106 - Pikachu Birds of a Feather (BoF)
Mark Smith
 
IETF 106 - IPv6 Formal Anycast Addresses and Functional Anycast Addresses
IETF 106 - IPv6 Formal Anycast Addresses and Functional Anycast AddressesIETF 106 - IPv6 Formal Anycast Addresses and Functional Anycast Addresses
IETF 106 - IPv6 Formal Anycast Addresses and Functional Anycast Addresses
Mark Smith
 
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet DevicesIETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
Mark Smith
 
IETF 106 - In-flight IPv6 Extension Header Insertion Considered Harmful
IETF 106 - In-flight IPv6 Extension Header Insertion Considered HarmfulIETF 106 - In-flight IPv6 Extension Header Insertion Considered Harmful
IETF 106 - In-flight IPv6 Extension Header Insertion Considered Harmful
Mark Smith
 
AusNOG 2019 - Lightning talk - A bit of UX for NEs
AusNOG 2019 - Lightning talk - A bit of UX for NEsAusNOG 2019 - Lightning talk - A bit of UX for NEs
AusNOG 2019 - Lightning talk - A bit of UX for NEs
Mark Smith
 
AusNOG 2019 - Getting IPv6 Private Addressing Right
AusNOG 2019 - Getting IPv6 Private Addressing RightAusNOG 2019 - Getting IPv6 Private Addressing Right
AusNOG 2019 - Getting IPv6 Private Addressing Right
Mark Smith
 
AusNOG 2018 - The Robots are Coming!
AusNOG 2018 - The Robots are Coming!AusNOG 2018 - The Robots are Coming!
AusNOG 2018 - The Robots are Coming!
Mark Smith
 
I Live Dangerously
I Live DangerouslyI Live Dangerously
I Live Dangerously
Mark Smith
 
AusNOG 2016 - The Trouble with NAT
AusNOG 2016 - The Trouble with NATAusNOG 2016 - The Trouble with NAT
AusNOG 2016 - The Trouble with NATMark Smith
 
slides-95-v6ops-0
slides-95-v6ops-0slides-95-v6ops-0
slides-95-v6ops-0Mark Smith
 
slides-85-v6ops-11
slides-85-v6ops-11slides-85-v6ops-11
slides-85-v6ops-11Mark Smith
 
AusNOG 2015 - Some fairly recent IPv6 IETF RFCs, discussions and topics
AusNOG 2015 - Some fairly recent IPv6 IETF RFCs, discussions and topicsAusNOG 2015 - Some fairly recent IPv6 IETF RFCs, discussions and topics
AusNOG 2015 - Some fairly recent IPv6 IETF RFCs, discussions and topics
Mark Smith
 
AusNOG 2013 - IPv6 RAs Mostly Necessary
AusNOG 2013 - IPv6 RAs Mostly NecessaryAusNOG 2013 - IPv6 RAs Mostly Necessary
AusNOG 2013 - IPv6 RAs Mostly NecessaryMark Smith
 
AusNOG 2015 - Why you should read RFCs and Internet Drafts (and what you need...
AusNOG 2015 - Why you should read RFCs and Internet Drafts (and what you need...AusNOG 2015 - Why you should read RFCs and Internet Drafts (and what you need...
AusNOG 2015 - Why you should read RFCs and Internet Drafts (and what you need...
Mark Smith
 
AusNOG 2014 - Network Virtualisation: The Killer App for IPv6?
AusNOG 2014 - Network Virtualisation: The Killer App for IPv6?AusNOG 2014 - Network Virtualisation: The Killer App for IPv6?
AusNOG 2014 - Network Virtualisation: The Killer App for IPv6?
Mark Smith
 
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
Mark Smith
 
AusNOG 2011 - Residential IPv6 CPE - What Not to Do and Other Observations
AusNOG 2011 - Residential IPv6 CPE - What Not to Do and Other ObservationsAusNOG 2011 - Residential IPv6 CPE - What Not to Do and Other Observations
AusNOG 2011 - Residential IPv6 CPE - What Not to Do and Other Observations
Mark Smith
 

More from Mark Smith (20)

NZNOG 2020 - IETF Highlights for Operators
NZNOG 2020 - IETF Highlights for OperatorsNZNOG 2020 - IETF Highlights for Operators
NZNOG 2020 - IETF Highlights for Operators
 
NZNOG 2020 - Getting IPv6 Private Addressing Right
NZNOG 2020 - Getting IPv6 Private Addressing RightNZNOG 2020 - Getting IPv6 Private Addressing Right
NZNOG 2020 - Getting IPv6 Private Addressing Right
 
NZNOG 2020 - The Trouble With NAT
NZNOG 2020 - The Trouble With NATNZNOG 2020 - The Trouble With NAT
NZNOG 2020 - The Trouble With NAT
 
IETF 106 - Pikachu Birds of a Feather (BoF)
IETF 106 - Pikachu Birds of a Feather (BoF)IETF 106 - Pikachu Birds of a Feather (BoF)
IETF 106 - Pikachu Birds of a Feather (BoF)
 
IETF 106 - IPv6 Formal Anycast Addresses and Functional Anycast Addresses
IETF 106 - IPv6 Formal Anycast Addresses and Functional Anycast AddressesIETF 106 - IPv6 Formal Anycast Addresses and Functional Anycast Addresses
IETF 106 - IPv6 Formal Anycast Addresses and Functional Anycast Addresses
 
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet DevicesIETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
 
IETF 106 - In-flight IPv6 Extension Header Insertion Considered Harmful
IETF 106 - In-flight IPv6 Extension Header Insertion Considered HarmfulIETF 106 - In-flight IPv6 Extension Header Insertion Considered Harmful
IETF 106 - In-flight IPv6 Extension Header Insertion Considered Harmful
 
AusNOG 2019 - Lightning talk - A bit of UX for NEs
AusNOG 2019 - Lightning talk - A bit of UX for NEsAusNOG 2019 - Lightning talk - A bit of UX for NEs
AusNOG 2019 - Lightning talk - A bit of UX for NEs
 
AusNOG 2019 - Getting IPv6 Private Addressing Right
AusNOG 2019 - Getting IPv6 Private Addressing RightAusNOG 2019 - Getting IPv6 Private Addressing Right
AusNOG 2019 - Getting IPv6 Private Addressing Right
 
AusNOG 2018 - The Robots are Coming!
AusNOG 2018 - The Robots are Coming!AusNOG 2018 - The Robots are Coming!
AusNOG 2018 - The Robots are Coming!
 
I Live Dangerously
I Live DangerouslyI Live Dangerously
I Live Dangerously
 
AusNOG 2016 - The Trouble with NAT
AusNOG 2016 - The Trouble with NATAusNOG 2016 - The Trouble with NAT
AusNOG 2016 - The Trouble with NAT
 
slides-95-v6ops-0
slides-95-v6ops-0slides-95-v6ops-0
slides-95-v6ops-0
 
slides-85-v6ops-11
slides-85-v6ops-11slides-85-v6ops-11
slides-85-v6ops-11
 
AusNOG 2015 - Some fairly recent IPv6 IETF RFCs, discussions and topics
AusNOG 2015 - Some fairly recent IPv6 IETF RFCs, discussions and topicsAusNOG 2015 - Some fairly recent IPv6 IETF RFCs, discussions and topics
AusNOG 2015 - Some fairly recent IPv6 IETF RFCs, discussions and topics
 
AusNOG 2013 - IPv6 RAs Mostly Necessary
AusNOG 2013 - IPv6 RAs Mostly NecessaryAusNOG 2013 - IPv6 RAs Mostly Necessary
AusNOG 2013 - IPv6 RAs Mostly Necessary
 
AusNOG 2015 - Why you should read RFCs and Internet Drafts (and what you need...
AusNOG 2015 - Why you should read RFCs and Internet Drafts (and what you need...AusNOG 2015 - Why you should read RFCs and Internet Drafts (and what you need...
AusNOG 2015 - Why you should read RFCs and Internet Drafts (and what you need...
 
AusNOG 2014 - Network Virtualisation: The Killer App for IPv6?
AusNOG 2014 - Network Virtualisation: The Killer App for IPv6?AusNOG 2014 - Network Virtualisation: The Killer App for IPv6?
AusNOG 2014 - Network Virtualisation: The Killer App for IPv6?
 
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
AusNOG 2013 - The Rapid Rise of the Mobile Multihomed Host, and What it Might...
 
AusNOG 2011 - Residential IPv6 CPE - What Not to Do and Other Observations
AusNOG 2011 - Residential IPv6 CPE - What Not to Do and Other ObservationsAusNOG 2011 - Residential IPv6 CPE - What Not to Do and Other Observations
AusNOG 2011 - Residential IPv6 CPE - What Not to Do and Other Observations
 

Recently uploaded

The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
TristanJasperRamos
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
ShahulHameed54211
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
Himani415946
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 

Recently uploaded (16)

The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 

AusNOG 2018 - A dirty trick to save a couple of IPv4 addresses on a LAN link.

  • 1. A dirty trick to save a couple of IPv4 addresses on a LAN link AusNOG 2018 Mark Smith markzzzsmith@gmail.com @markzzzsmith
  • 2. 203.0.113.3 SM - 255.255.255.0 DG - 203.0.113.2 BCAST - 203.0.113.255 203.0.113.2 SM - 255.255.255.0 BCAST - 203.0.113.255 203.0.113.0/24
  • 3. 203.0.113.3 SM - 255.255.255.254 (i.e. /31) DG - 203.0.113.2 BCAST - ???? 203.0.113.2 SM - 255.255.255.0 BCAST - 203.0.113.255 203.0.113.0/24
  • 4. 203.0.113.3 SM - 255.255.255.254 (i.e. /31) DG - 203.0.113.2 BCAST - 255.255.255.255 203.0.113.2 SM - 255.255.255.0 BCAST - 203.0.113.255 203.0.113.0/24
  • 5. 203.0.113.3 SM - 255.255.255.255 (i.e. /32) DG - ???? BCAST - 255.255.255.255 203.0.113.2 SM - 255.255.255.0 BCAST - 203.0.113.255 203.0.113.0/24
  • 6. 203.0.113.3 SM - 255.255.255.255 (i.e. /32) DG - 169.254.0.1 Reach 169.254.0.1 - ??? BCAST - 255.255.255.255 169.254.0.1 SM - ???? BCAST - ???? Reach 203.0.113.0/24s - ???? 203.0.113.0/24 169.254.0.0/16 - Link-Local Prefix (RFC3927) - No forwarding off-link - Use on many links (all) fine
  • 7. 169.254.0.1 SM - 255.255.255.255 (i.e. /32) BCAST - 255.255.255.255 Reach 203.0.113.0/24s - ip route 203.0.113.0/24 eth0 203.0.113.0/24 eth0 eth0 203.0.113.3 SM - 255.255.255.255 (i.e. /32) DG - 169.254.0.1 Reach 169.254.0.1 - ip route 169.254.0.0/32 eth0 (host equiv) BCAST - 255.255.255.255
  • 8. 169.254.0.1 SM - 255.255.255.255 (i.e. /32) BCAST - 255.255.255.255 Reach 203.0.113.0/24s - ip route 203.0.113.0/24 eth0 eth0 eth0 203.0.113.3 SM - 255.255.255.255 (i.e. /32) DG - 169.254.0.1 Reach 169.254.0.1 - ip route 169.254.0.0/32 eth0 (host equiv) BCAST - 255.255.255.255 203.0.113.0/32 BCAST 255.255.255.255, DG 169.254.0.1 203.0.113.255/32 BCAST 255.255.255.255, DG 169.254.0.1 Link address space 203.0.113.0/24
  • 9. Works - Linux Host [root@opy mark]# ip addr add 192.168.0.0/32 brd 255.255.255.255 dev enp0s25 [root@opy mark]# ip addr show enp0s25 | grep 192.168 inet 192.168.0.0/32 brd 255.255.255.255 scope global enp0s25 [root@opy mark]# [root@opy mark]# ip route add 169.254.0.1/32 dev enp0s25 [root@opy mark]# ip route show 169.254.0.1 169.254.0.1 dev enp0s25 scope link [root@opy mark]# [root@opy mark]# ip route add default via 169.254.0.1 [root@opy mark]# ip route show default default via 169.254.0.1 dev enp0s25 [root@opy mark]#
  • 10. Works - Linux Router root@lede-wndr3800:~# ip addr add 169.254.0.1/32 brd 255.255.255.255 dev br-lan root@lede-wndr3800:~# ip addr show dev br-lan | grep 169.254.0.1 inet 169.254.0.1/32 brd 255.255.255.255 scope global br-lan root@lede-wndr3800:~# root@lede-wndr3800:~# ip route add 192.168.0.0/24 dev br-lan root@lede-wndr3800:~# ip route show | grep 192 192.168.0.0/24 dev br-lan root@lede-wndr3800:~#
  • 11. Works - Linux Host <ping output here> Yes it works, forgot to capture it
  • 12. Works (?) - Cisco router A long time ago, pretty sure it worked. int eth0 ip address 169.254.0.1 255.255.255.255 (‘ip broadcast-address 255.255.255.255’ default) ip route 203.0.113.0 255.255.255.0 eth0
  • 13. Advantages Got two more IPv4 addresses on the LAN link Woohoo! IPv4 FTW!
  • 14. Meh Use IPv6if you want/need more addresses.
  • 15. Advantages Default Gateway address decoupled from hosts’ “application” address prefix.
  • 16. Advantages Renumber hosts without changing their Default Gateway address.
  • 17. Advantages Removed one of hosts’ external dependencies. Good principle to remove external dependencies - simpler, therefore more reliable.
  • 18. This is how IPv6 works IPv6 hosts’ default gateway is a link- local address e.g., fe80::abcd/64
  • 19. CC image courtesy of Kiwithing http://www.flickr.com/photos/kiwisaotome/8261132558/sizes/c/ in/photostream/ Presentation clipart sourced from https://openclipart.org/